JBoss Community

Re: ClassNotFoundException org.jboss.ws.api.tools.WSContractConsumer when using maven-jaxws-tools-plugin

created by nicolas duminil in JBoss Web Services - View the full discussion

Okay, thanks for the update. Now I modified my pom such that to use the 1.0.0.GA release. Here is the new one:

 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>be.ovam.soa</groupId>

  <artifactId>FakeSearchService</artifactId>

  <version>0.0.1-SNAPSHOT</version>

  <packaging>war</packaging>

  <name>fake search service</name>

  <description>This is a simulation of the SearchService</description>

  <dependencies>

    <dependency>

      <groupId>org.jboss.ws.native</groupId>

      <artifactId>jbossws-native-client</artifactId>

      <version>3.3.1.GA</version>

    </dependency>

  </dependencies>

  <build>

    <plugins>

      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-compiler-plugin</artifactId>

        <version>2.3.2</version>

        <configuration>

          <source>1.6</source>

          <target>1.6</target>

        </configuration>

      </plugin>

      <plugin>

        <groupId>org.jboss.ws.plugins</groupId>

        <artifactId>maven-jaxws-tools-plugin</artifactId>

        <version>1.0.0.GA</version>

        <configuration>

          <wsdls>

            <wsdl>${basedir}/wsdl/OrderProcess.wsdl</wsdl>

          </wsdls>

          <targetPackage>be.ovam.soa</targetPackage>

          <extension>true</extension>

        </configuration>

        <executions>

          <execution>

            <goals>

              <goal>wsconsume</goal>

            </goals>

          </execution>

        </executions>

      </plugin>

    </plugins>

  </build>

</project>

 

Now it generates the stubs, etc. but the generated stuff doesn't compile raising this errors:

 

22/02/12 16:51:27 CET: [INFO] Compiling 7 source files to /home/nicolas/workspace/jds40/FakeSearchService/target/classes

22/02/12 16:51:28 CET: [INFO] -------------------------------------------------------------

22/02/12 16:51:28 CET: [ERROR] COMPILATION ERROR :

22/02/12 16:51:28 CET: [INFO] -------------------------------------------------------------

22/02/12 16:51:28 CET: [ERROR] /home/nicolas/workspace/jds40/FakeSearchService/target/wsconsume/java/be/ovam/soa/OrderProcessService.java:[46,8] cannot find symbol

symbol  : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])

location: class javax.xml.ws.Service

22/02/12 16:51:28 CET: [ERROR] /home/nicolas/workspace/jds40/FakeSearchService/target/wsconsume/java/be/ovam/soa/OrderProcessService.java:[54,8] cannot find symbol

symbol  : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])

location: class javax.xml.ws.Service

22/02/12 16:51:28 CET: [ERROR] /home/nicolas/workspace/jds40/FakeSearchService/target/wsconsume/java/be/ovam/soa/OrderProcessService.java:[62,8] cannot find symbol

symbol  : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])

location: class javax.xml.ws.Service

22/02/12 16:51:28 CET: [INFO] 3 errors

 

So it doesn't compile what itself has generated !

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community