Hello, at the moment I enhance the example explained above and put some EJBs as well in the EAR. The EJB should also use a class from the jar file called jpi-jboss-iv-classloadertest.jar. This jar file I deployed in the EAR-File and the Classpath variable of the Manifest file of the ejb jar file list the jpi-jboss-iv-classloadertest.jar. The jpi-jboss-iv-classloadertest.jar is also deployed in the server/lib directory of JBoss (as I'd like to test, that it is loaded from the EAR and not from the server/lib directory of JBoss).
Here is a short overview how the SAR-file now looks | jpi-iv-jboss.sar | - meta-inf/jboss-service.xml | - myear.ear | - application.xml | - first.war | - second.war | - jpi-jboss-iv-classloadertest.jar | - myejb.jar | - meta-inf/Manifest | - meta-inf/jboss.xml | - meta-inf/ejb-jar.xml | ...the ejbs and other classes | The jboss-service.xml file of the sar file looks like this: <server> | <classpath | codebase="file:/C:/common/lib/" | archives="mycommon.jar"/> | | <loader-repository>dot.com:loader=jpi-jboss-iv-ejbs.ear | <loader-repository-config>java2ParentDelegation=false | </loader-repository-config> </loader-repository> | </server> When the ejb accesses the class (which is contained in the jpi-jboss-iv-classloadertest.jar file) it is not loaded from the ear file, but from the server/lib directory of jboss. Removing the jboss-iv-classloadertest.jar from the server/lib directory has the effect, that it is now loaded from the EAR file. I did this test just to ensure that the EAR file really contains the jboss-iv-classloadertest.jar file. What is wrong with this configuration?. By the way in the JBoss JmxConsole I cannot see the loader-repository configured above. Thanks for your help Regards Karin View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862601#3862601 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3862601 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
