Got "Provider for javax.xml.soap.MessageFactory cannot be found" when making a web service call

Solution Verified - Updated -

Issue

We have a SOAP web service working properly on Fuse 6.1. After modifying pom.xml and deploying it to Fuse 6.2.1, we got the following error when making a web service call:

Caused by: javax.xml.soap.SOAPException: Unable to create MessageFactory: Provider for javax.xml.soap.MessageFactory cannot be found

There was a workaround mentioned on some forum posts suggesting to remove org.apache.servicemix.specs.saaj-api-1.3-2.5.0.jar from "<JBoss_Fuse_home>/lib/endorsed/" folder but we don't want to do that as our Fuse server are being used by many teams and hosts a lot of bundles.

Is there another solution available?

Environment

  • JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content