Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User »

[JBoss-user] [HTTPD, Servlets & JSP] - loader-repository, is it a must for me?

darranl

2004-05-09


Hi

I have multiple wars (no ear) that im deploying to the same jboss-tomcat server
They have web-inf directory and in their web-inf/classes , they have the same class

a.war / web-inf / classes / common.class
b.war / web-inf / classes / common.class
c.war / web-inf / classes / common.class

I have noticed they all used the same class that was loaded by the same classloader!

Therefore I used this


<jboss-app> <loader-repository>some.dot.com:loader=a.ear</loader-repository></jboss-app>
<jboss-app> <loader-repository>some.dot.com:loader=b.ear</loader-repository></jboss-app>
<jboss-app> <loader-repository>some.dot.com:loader=c.ear</loader-repository></jboss-app>

within ear's that I created for them and it fixed the problem.

is it a must? can't I have multiple war's with the same jar in their web-inf/lib or same classes in their web-inf/classes without creating a top ear for them with jboss-app such that they would be loaded by multiple class loaders?

Thanks

Tomer

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834200#3834200

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834200


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-user mailing list
JBoss-user@(protected)
https://lists.sourceforge.net/lists/listinfo/jboss-user


©2008 junlu.com - Jax Systems, LLC, U.S.A.