3.7.3. Disable Subdeployment Class Loader Isolation Within a EAR
This task shows you how to disable Subdeployment class loader isolation in an EAR deployment by using a special deployment descriptor in the EAR. This does not require any changes to be made to the application server and does not affect any other deployments.
Important
Even when subdeployment class loader isolation is disabled it is not possible to add a WAR deployment as a dependency.
Add the deployment descriptor file
Add thejboss-deployment-structure.xml
deployment descriptor file to theMETA-INF
directory of the EAR if it doesn't already exist and add the following content:<jboss-deployment-structure> </jboss-deployment-structure>
Add the
<ear-subdeployments-isolated>
elementAdd the<ear-subdeployments-isolated>
element to thejboss-deployment-structure.xml
file if it doesn't already exist with the content offalse
.<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
Result:
Subdeployment class loader isolation will now be disabled for this EAR deployment. This means that the subdeployments of the EAR will have automatic dependencies on each of the non-WAR subdeployments.