We deployed an EAR file on JBoss 4.2.3 which contains multiple WAR files.
Our problem is: When a class inside WAR3 tries to create an instance of a class included in WAR1 we keep getting a ClassNotFoundException. The same EAR file works without any problems under JBoss 4.0.5.
What do we miss here?
But we hoped to find a more simple solution than changing our whole application for that.
Option#2 (which is really a workaround if fixing the application packaging is not feasible): The jboss-service.xml file under %JBOSS_HOME%/server/< serverName>/deploy/jboss-web.deployer/META-INF contains this:
<!-- A flag indicating if the JBoss Loader should be used. This loader uses a unified class loader as the class loader rather than the tomcat specific class loader. The default is false to ensure that wars have isolated class loading for duplicate jars and jsp files. --> <attribute name="UseJBossWebLoader">false</attribute>
You can change it to true.