Guys, this doen't work even if the two components are part of one EAR. The one is .WAR, and the other is .JAR, described if application.xml as:
<module> <web> <web-uri>TransporterWAR.war</web-uri> <context-root>transporter</context-root> </web> </module> <module> <java>PMS_Servlet.jar</java> </module>
Don't confuse, PMS_Servlet.jar is not a servlet, it's just the part of my application that should go to the servlet container
have you tried the ClassLoadingConfiguration instructions from the wiki-site?
Perhaps you can define a common loader-repository for both ears in their respective jboss-app.xml's
I solved the problem, changing this property like that
and it works at least when the two modiles are in one ear. I haven't tried it when in two ears yet. About the ClassLoadingConfiguration I'm not sure if I understood everything in that article, but I added the following tags in jboss-web.xml and jboss-app.xml
This didn't help. :(
I don't believe that this solution is the right one, so if anybody knows better it will be great to share it with me :)
Same problem and solution here. I found the same setting yesterday and it worked. I have a ServiceLocator which holds a reference to the SpringAppContext and it works fine now.