This content has been marked as final.
Show 4 replies
-
1. Re: Cannot load class from another deployed ear
vanjo_83 Dec 14, 2005 6:59 AM (in response to vanjo_83)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 -
2. Re: Cannot load class from another deployed ear
mroosendaal Dec 14, 2005 8:02 AM (in response to vanjo_83)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 -
3. Re: Cannot load class from another deployed ear
vanjo_83 Dec 15, 2005 2:05 AM (in response to vanjo_83)I solved the problem, changing this property like that
<attribute name="UseJBossWebLoader">true</attribute>
in ...deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
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<loader-repository>dot.com:loader=blablabla</loader-repository>
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 :) -
4. Re: Cannot load class from another deployed ear
mroosendaal Dec 15, 2005 3:26 AM (in response to vanjo_83)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.