JBoss is unable to cast classes to javax.xml.soap.SAAJMetaFactory
Issue
- While running WebService based applications deployed on JBoss, it throws the following kind of exceptions:
14:37:37,801 SEVERE [http] WSSERVLET11: failed to parse runtime descriptor: java.lang.Error: javax.xml.soap.SOAPException: Unable to create SAAJ meta-factoryorg.jboss.ws.core.soap.SAAJMetaFactoryImpl cannot be cast to javax.xml.soap.SAAJMetaFactory
java.lang.Error: javax.xml.soap.SOAPException: Unable to create SAAJ meta-factoryorg.jboss.ws.core.soap.SAAJMetaFactoryImpl cannot be cast to javax.xml.soap.SAAJMetaFactory
at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:181)
at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:83)
at com.sun.xml.ws.api.BindingID.<clinit>(BindingID.java:318)
- The application contains the following jars inside the
"WEB-INF/lib"directory.
activation-1.1.jar
jaxb-api-2.1.jar
jaxws-api-2.1.jar
jsr181-api-1.0-MR1.jar
jsr250-api-1.0.jar
resolver-20050927.jar
saaj-api-1.3.jar
stax-api-1.0.jar
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.