If you are using the same Spring versions, then your runtime of bothe WAR and 
SAR should use classes loaded by the same class loader, to avoid problems. 
There are several things you can do. 
1) The obvious one is to do what you don't want to do (why?) and that is to 
copy Spring JARs in the lib directory of JBoss. This way WAR and SAR will be 
using classes loaded by the same class loader.
2) Since you don't want to copy to lib dir, and if I understand correctly your 
SAR and WAR have some type of reliance on one another, you can encapsulate your 
WAR inside of SAR.
3) You can also enable JBoss Class Loading model for the WAR. By default it is 
desabled and that is why you are having problems whenever you are dealing with 
the same classes (WAR/SAR). You probably getting ClassCast/Linkage and other 
errors simply becouse those classes are loaded by different class loaders. To 
do that:
a) Remove your loader isolation for the SAR
b) Go to 
JBOSS_HOME/server/<your_configuration>/deploy/jbossweb-tomcat55.sar\META-INF\jboss-service.xml
 and change the following attribute to "true"

  | <attribute name="UseJBossWebLoader">true</attribute>
  | 

Let me know

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028294
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to