-
1. Re: Jboss Ear not loading classes from war file
rhn-support-rangupta Apr 17, 2018 3:18 AM (in response to mukul4u2005)Refer document link below for class loading and proper configuration
Class Loading in WildFly - WildFly 10 - Project Documentation Editor
-
2. Re: Jboss Ear not loading classes from war file
mukul4u2005 Apr 17, 2018 6:12 AM (in response to rhn-support-rangupta)I referred that, I don't want to move those jar and classes to ear/lib
folder. It is working in weblogic but on jboss I am getting below exception.
Please suggest.
Thanks
Mukul
On Tue, Apr 17, 2018 at 3:19 AM rhn-support-rangupta
-
3. Re: Jboss Ear not loading classes from war file
mukul4u2005 Apr 17, 2018 7:06 AM (in response to mukul4u2005)I believe this WAR class loading step should apply as per documentation:
Class Loading Precedence
A common source of errors in Java applications is including API classes in a deployment that are also provided by the container. This can result in multiple versions of the class being created and the deployment failing to deploy properly. To prevent this in WildFly, module dependencies are added in a specific order that should prevent this situation from occurring.
In order of highest priority to lowest priority
- System Dependencies - These are dependencies that are added to the module automatically by the container, including the Java EE api's.
- User Dependencies - These are dependencies that are added through jboss-deployment-structure.xml or through the Dependencies: manifest entry.
- Local Resource - Class files packaged up inside the deployment itself, e.g. class files from WEB-INF/classes or WEB-INF/lib of a war.
- Inter deployment dependencies - These are dependencies on other deployments in an ear deployment. This can include classes in an ear's lib directory, or classes defined in other ejb jars.
WAR Class Loading
The war is considered to be a single module, so classes defined in WEB-INF/lib are treated the same as classes in WEB-INF/classes. All classes packaged in the war will be loaded with the same class loader.
But ear is expecting that in test.ear/lib folder not in test.ear/abc.war/classes folder.
Thanks
-
4. Re: Jboss Ear not loading classes from war file
mukul4u2005 May 6, 2018 12:51 AM (in response to mukul4u2005)Any suggestion from some one, I am getting message in server logs that subdeployment ignore the jboss-deployment descriptor file:
) WFLYSRV0001: /C:/jboss-eap-7.0/bin/content/abc.ear/abc.war/WEB-INF/jboss-deployment-structure.xml in subdeployment ignored. jboss-deployment-structure.xml is only parsed for top level deployments.
-
5. Re: Jboss Ear not loading classes from war file
mukul4u2005 May 6, 2018 12:55 AM (in response to mukul4u2005)It suppose to be loaded all jars from ear/lib folder but its not picking that. We are copying those jars to lib folder of war or define that in module.
Any help will appreciate. Thanks