【问题标题】:required missing class in execution of jaxws-maven-plugin wsgen执行 jaxws-maven-plugin wsgen 时需要缺少的类
【发布时间】:2014-10-08 08:29:10
【问题描述】:

我正在使用jax-ws 构建一个Java Web 服务。我使用jaxws-maven-plugin 的代码优先方法来生成wsdl。问题是我从 maven 收到以下错误,我不知道为什么需要 jax-rs 类。我正在使用 wildfly 8.1.0 bom 进行 javaee7 api 解析(我不知道它是否与 jaxws-maven-plugin 冲突)。

[ERROR] Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsgen    
(generate-wsdl) on project e-chapaa-services: Execution generate-wsdl of goal 
org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsgen failed: A required class was
missing while executing org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsgen: 
    javax/ws/rs/core/Application

插件配置如下

<plugin>
   <groupId>org.jvnet.jax-ws-commons</groupId>
   <artifactId>jaxws-maven-plugin</artifactId>
   <version>2.3</version>
   <executions>
        <execution>
             <id>generate-wsdl</id>
             <phase>process-classes</phase>
             <goals>
                  <goal>wsgen</goal>
             </goals>
             <configuration>
                  <genWsdl>true</genWsdl>
             </configuration>
         </execution>
   </executions>
</plugin>

【问题讨论】:

    标签: web-services maven jax-ws maven-plugin jaxws-maven-plugin


    【解决方案1】:

    在插件的配置部分,我必须使用&lt;sei&gt;&lt;/sei&gt; 添加端点类实现,它起作用了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-10-20
      • 1970-01-01
      • 2020-01-21
      • 1970-01-01
      • 1970-01-01
      • 2023-04-09
      • 2019-02-18
      相关资源
      最近更新 更多