[jboss-user] [Installation, Configuration & DEPLOYMENT] - Classloader issues in JBoss 5.0.0

jbossasuser do-not-reply at jboss.com
Tue Apr 14 13:45:18 EDT 2009


Hi
Am using JBoss AS 5.0.0 on jdk5.
Deployment of my war file fails. I see this error:
------------------------------------------------------------
08:31:46,225 ERROR [StandardContext] Context [/myapp] startup failed due to previous errors
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/Parser class
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
        at org.apache.tomcat.util.digester.Digester.getParser(Digester.java:704)
        at org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:978) 
-------------------------------------------------------------

Seems like three might be conflict between jboss's "lib/endorsed/xercesImpl.jar" and my app's "WEB-INF/lib/xercesImpl.jar".


I tried the following below.
Created file "myapp.war/WEB-INF/jboss-web.xml"
-----------------------------------
<jboss-web>
        <class-loading java2ClassLoadingCompliance='false'>
                <loader-repository>
                        com.example:loader='myapp.war'
                        <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                </loader-repository>
        </class-loading>
</jboss-web>
-----------------------------------

I removed the temporary files and restarted the webcontainer.
But this didn't resolve the problem. 

How do I configure the classloading, to use my app's xercesImpl.jar over the one in JBoss ?


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

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



More information about the jboss-user mailing list