Hi rishi,

I had a bit of fun with this myself. In the end we have steered away from JBoss 
so I don't have much help other than this advice.

>From what I found there is two ways around it. The first is quick (and 
>dirty?). Just delete xml-apis-1.3.04.jar and xercesImpl-2.8.1.jar (or their 
>applicable versions) from the Axis2 war and deploy that. It should work then.

The other way is to mess around with Class Loading Configuration. I didn't have 
much joy with this but I didn't play with it for long enough to really know: 
http://www.jboss.org/community/wiki/ClassLoadingConfiguration

Good luck!

David

From: rishi [mailto:kapur....@gmail.com]
Sent: Wednesday 17 June 2009 5:29 AM
To: axis-user@ws.apache.org
Subject: Error installing Axis2.war in Jboss

Hi All,

I am having trouble installing Axis2 1.4.1 or 1.5 they both are giving same 
error as below. All I did was to put axis2.war in jboss-5.1.0.GA\server\default.
This is in both Jboss 5.1and 5.01

Caused by: java.lang.ClassCastException: 
org.apache.xerces.parsers.XML11Configuration cannot be cast to 
org.apache.xerces.xni.parser.XMLParserConfiguration
    at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
    at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
    at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
    ... 75 more
2009-06-16 15:17:28,039 ERROR 
[org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) XML error 
parsing: jboss.web/localhost/context.xml.default
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
    at 
org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
    at 
org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549)
    at 
org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:537)
    at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
    at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:

Please let me know if you have it working in Jboss. Thanks a lot
-rishi

Reply via email to