Hi, I am trying to deploy our ear file to JBoss 5.0.0GA, we have always historically packaged xerces and xalan within the lib directory in the war file and it has deployed to JBoss 4.0.4 previously successfully, however, I have noticed that the classloaders are loading those classes from the endorsed lib jar files and is ignoring the ones we package in our application. What I want it to do is to upgrade to version 5 of JBoss and so load the versions of the files that we bundle with our application as we also deploy this application to other app servers dependant on the clients preferences of app server so I'd like to enforce what versions of the xerces files that are used.
I have looked into this and have tried adding the following <class-loading> <loader-repository> com.example:archive=our.war </loader-repository> </class-loading> It didn't have any effect, I have read somewhere that it might not be possible to override the xerces jar that comes with JBoss, is that true? Otherwise, when I remove activation.jar, jaxb-api.jar, serializer.jar, xalan.jar xercesImpl.jar and xml-apis.jar from the application, it uses the endorsed version and the application runs fine, if I leave them in, I get the following Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:97) at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:56) at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96) ... 63 more Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration at org.apache.xerces.parsers.SAXParser.(Unknown Source) at org.apache.xerces.parsers.SAXParser.(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199228#4199228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199228 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user