Hi all,

I am running 3.2.3, and I seem to have hit a brick wall at full speed!

I have the following applications:

A.war and B.ear. On their own, both applications deploy and function correctly. When 
both files are in the deploy directory, and the server starts up, the order of 
deployment is A, B. When I use application B, it is picking up a jar file, and 
configuration file from application A. I am assuming that this is due to the 
UnifiedClassLoader. I saw a few posts on disabling the UCL by including the 
loader-repository element in the jboss-app.xml file. I repackaged A into a file A.ear 
and added the following to the jboss-app.xml:

<jboss-app>
  |   <loader-repository>repository.A.ear:loader=A.ear</loader-repository>  
  | </jboss-app>

This is where my nightmare begins. I get all kinds of ClassCastExceptions when I 
deploy A as an ear with the UCL disabled. I got passed some log4j errors by removing 
the log4j.jar from the a's Web-Inf/lib folder. I am now seeing all kinds of nasty XML 
errors. Apparently A uses JDom, and includes all kinds of Jdom, xerces, and jaxp jars 
in its web-inf/lib. (In case you can't tell, I wrote app B, and another team wrote app 
A. I'm the poor sap who gets to make it all work!)

Am I on the right track by packaging application A as an ear file and disabling the 
UCL for both applications? Is there another, more pragmatic way to let two 
applications load their own jars, and not have classes leak between applications?

Also, if some kind soul can explain, or point me to an appropriate thread/forum, how 
an app behaves when the loader-repository element is set.

Thanks!

Mike

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to