Legacy Knowledge Base
公開されました Sep. 10, 2025

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.

問題

  • リモート SOAP サービスを呼び出すために SOAP クライアントを実装しようとすると、次のエラーが発生しました:
    •  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

解決策

  • 観察されたエラーは、プロジェクトの依存関係の欠落の結果である可能性があります。
    <dependency>
    <groupId>com.sun.xml.messaging.saaj</groupId>
    <artifactId>saaj-impl</artifactId>
    <version>1.5.1</version>
    </dependency>
  • ただし、1.5.1 よりも古いバージョンを使用している場合、またはそれ以前のバージョンが な場合は、ファイル ROOT\WEB-INF\classes\META-INF\services\ javax.xml.soap.SAAJMetaFactoryを次の行で作成してください。 SAAJ ファクトリ クラスの完全修飾名を指定するには:com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base