【问题标题】:mule-Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.5.9:wsdl2java (default) on project : javax/xml/ws/Actionmule-无法在项目上执行目标 org.apache.cxf:cxf-codegen-plugin:2.5.9:wsdl2java(默认):javax/xml/ws/Action
【发布时间】:2014-05-02 21:41:24
【问题描述】:

我正在关注 http://www.mulesoft.org/documentation... 通过 CXF 客户端示例创建到 SOAP 服务的连接器。当我在 pom 文件中添加所需的 maven 依赖代码并清理并运行它(在 mule studio 上)...我收到以下错误:

Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.5.9:wsdl2java (default) on project sunsetriseconnector: javax/xml/ws/Action 

完整的堆栈跟踪如下所示:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Sunset Sunrise Service 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> studio-maven-plugin:3.4.2:studio (default-cli) @ sunsetriseconnector >>>
[INFO] 
[INFO] --- mule-devkit-maven-plugin:3.4.0:attach-test-resources (default-attach-test-resources) @      sunsetriseconnector ---
[INFO] Attaching test resource D:\MuleExamples\sunsetrise\src\main\app
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0-alpha-4:enforce (enforce-maven-version) @   sunsetriseconnector ---
[INFO] 
[INFO] --- mule-devkit-maven-plugin:3.4.0:generate-sources (default-generate-sources) @ sunsetriseconnector ---
[INFO] Source directory: D:\MuleExamples\sunsetrise\target\generated-sources\mule added
[INFO] Resource directory: D:\MuleExamples\sunsetrise\target\generated-sources\mule added
[INFO] Sorting generator executing based on their dependencies...
[INFO] Searching for classes annotated with @Connector
[INFO] Validating sunsetriseConnector class
[INFO] Validating Multi-module consistency
[INFO] Adding registry bootstrap entry for   org.tutorial.sunsetrise.agents.DefaultSplashScreenAgent as DefaultSplashScreenAgent
[INFO] Generating message processor as org.tutorial.sunsetrise.processors.MyProcessorMessageProcessor for method myProcessor in sunsetriseConnector
[INFO] Generating config element definition parser as   org.tutorial.sunsetrise.config.sunsetriseConnectorConfigDefinitionParser for class sunsetriseConnector
[INFO] Generating bean definition parser as org.tutorial.sunsetrise.config.MyProcessorDefinitionParser for message processor org.tutorial.sunsetrise.processors.MyProcessorMessageProcessor
[INFO] Validating example for method: myProcessor
 log4j:WARN No appenders could be found for logger    (org.springframework.beans.factory.xml.PluggableSchemaResolver).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] 
[INFO] --- cxf-codegen-plugin:2.5.9:wsdl2java (default) @ sunsetriseconnector ---
 May 2, 2014 12:18:13 PM org.apache.cxf.xjc.bg.BooleanGetterPlugin run
INFO: Running boolean getter plugin.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.464s
[INFO] Finished at: Fri May 02 12:18:13 IST 2014
[INFO] Final Memory: 33M/62M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.5.9:wsdl2java (default) on   project sunsetriseconnector: javax/xml/ws/Action -> [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/MojoExecutionException

我是 mule 和 Apache cxf 的新手。请帮我。 谢谢。

【问题讨论】:

    标签: web-services maven mule mule-studio


    【解决方案1】:

    我通过在 C:\Program Files (x86)\Java\jdk1.6.0_02\jre\lib\endorsed 中添加 jaxws-api-2.2.1.jar 得到了修复 文件夹。

    【讨论】:

      【解决方案2】:

      如果您使用的是基于 Eclipse 构建的 MuleStudio,您应该将 JAR 导入您的构建路径。见This SO answer

      如果您使用的是 Mule ESB Standalone,您应该将 JAR 放到 MULE_HOME/apps/yourapp/lib 目录中(如果您需要基于每个应用程序)或 /MULE_HOME/lib/user

      the class loader documentation

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-10-05
        • 1970-01-01
        • 2017-09-19
        • 2017-07-18
        • 2020-05-10
        • 2016-07-25
        • 2018-03-04
        • 2016-08-06
        相关资源
        最近更新 更多