JBossWS-CXF: Exception calling MessageFactory.newInstance()

Solution Verified - Updated -

Issue

We recently upgraded to EAP 5.1.2 from 5.1.0.  We have some code that calls:

javax.xml.soap.MessageFactory.newInstance("SOAP 1.1 Protocol")

In 5.1.0, this returns an instance of com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl but in 5.1.2, this throws a NoClassDefFoundError. 

Environment

  • JBoss Enterprise Application Platform (EAP) 5.1+
  • JBossWS-CXF

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.