JBoss is unable to cast classes to javax.xml.soap.SAAJMetaFactory

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.