0

を使用してJava Webサービスを構築していjax-wsます。jaxws-maven-pluginwsdlを生成するためにコードファーストアプローチを使用しています。問題は、Maven から次のエラーが発生し、jax-rsクラスが必要な理由がわからないことです。javaee7 api の解決に wildfly 8.1.0 bom を使用しています (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>
4

1 に答える 1

0

in the configuration section of the plugin, i had to add the endpointclass implementation with <sei></sei> and it worked.

于 2014-10-09T04:46:19.613 に答える