[jboss-user] [JBoss Microcontainer] - isolated classloading for war file

Brad - do-not-reply at jboss.com
Fri Apr 16 06:44:11 EDT 2010


Brad - [http://community.jboss.org/people/brad1973] created the discussion

"isolated classloading for war file"

To view the discussion, visit: http://community.jboss.org/message/537933#537933

--------------------------------------------------------------
Hi,

I have a .war and .sar deployed in JBoss 5 which both require spring framework version 3 jars. We have other services deployed which use spring version 2 and the JAR for that version is in the servler lib directory.

I can get the .sar to use its local spring JARs using the jboss-classloading.xml file in the META-INF directory, however it won't seem to work for the war file.

test.sar/META-INF/jboss-classloading.xml:

<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0"
    name="test.sar"
    domain="test.sar.domain"
    parent-first="false"
    export-all="NON_EMPTY"
    import-all="false">
</classloading>

test.war/WEB-INF/jboss-classloading.xml:

<?xml version="1.0" encoding="UTF-8"?>
 <classloading xmlns="urn:jboss:classloading:1.0"
     name="test.war"
     domain="test.war.domain"
     parent-first="false"
     export-all="NON_EMPTY"
     import-all="false">
 </classloading>

I get this error:


Its definitely working for the .sar but not the .war. Could someone advise me where I'm going wrong?

Thanks,
Brad.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/537933#537933]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100416/dfba8ae2/attachment.html 


More information about the jboss-user mailing list