2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【エラーメモ】Muleコンパイルする際に、tls:contextエラーの対処法

Posted at

エラー内容

Mule Flowを実行する際に、下記エラーが発生しました。

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.479 s
[INFO] Finished at: 2023-12-03T15:54:05+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.8.0:process-classes (default-process-classes) on project munit-demo: Execution default-process-classes of goal org.mule.tools.maven:mule-maven-plugin:3.8.0:process-classes failed: There was '1' error while parsing the given file 'munit-error-demo.xml'.
[ERROR] Full list:
[ERROR] org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 19; cvc-complex-type.2.4.b: The content of element 'tls:context' is not complete. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/tls":trust-store, "http://www.mulesoft.org/schema/mule/tls":trust-store, "http://www.mulesoft.org/schema/mule/tls":key-store, "http://www.mulesoft.org/schema/mule/tls":trust-store}' is expected.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

原因分析

tlsを使う必要がないけど、誤って「TLS Configuration」のチェックを入れました。TLSのコンテストが足りないため、エラーが発生しました。

image.png

image.png

処方箋

「TLS Configuration」のチェックをNoneにする。

image.png

もしくは、MuleのXMLコードから、「tls:context」を削除する。
image.png

終わりに

最後までお読みいただき、本当にありがとうございました。

また、Mulesoftに関連するあらゆる技術的な支援を提供しております。
Mulesoftについてのご質問や課題がございましたら、どうぞお気軽にお問い合わせください。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?