Legacy Knowledge Base
Published Sep. 10, 2025

Unable to create message factory for SOAP

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When attempting to implement a soap client to call remote soap services, the following error occurred:
    •  Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Unable to create SAAJ meta-factory: Provider com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl not found

Environment

  • Liferay DXP 7.3

Resolution

  • The observed error could be the result of the project's missing dependency:
    <dependency>
    <groupId>com.sun.xml.messaging.saaj</groupId>
    <artifactId>saaj-impl</artifactId>
    <version>1.5.1</version>
    </dependency>
  • In some cases, you may also need to add thesaaj-impl-x.x.x.jar to TOMCAT/webapps/ROOT/WEB-INF/shielded-container-lib folder.
  • However, if using an older version than 1.5.1 or requiring lower versions, please create the file ROOT\WEB-INF\classes\META-INF\services\ javax.xml.soap.SAAJMetaFactorywith the following line to provide the fully-qualified name of the SAAJ factory class:com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base