I have got the same problem when trying to execute wsgen from Netbeans 6.1 with maven. Here is the stack trace from maven :
[jaxws:wsgen] [ERROR]The following mojo encountered an error while executing: [ERROR]Group-Id: org.codehaus.mojo [ERROR]Artifact-Id: jaxws-maven-plugin [ERROR]Version: 1.10 [ERROR]Mojo: wsgen [ERROR]brought in via: POM [ERROR]While building project: [ERROR]Group-Id: com.example.maven.jaxws [ERROR]Artifact-Id: helloservice [ERROR]Version: 1.0-SNAPSHOT [ERROR]From file: D:\...\jaxws-maven-sample\helloservice\pom.xml [ERROR]Reason: Failed to execute wsgen I was doing the tutorial from http://java.sun.com/mailers/techtips/enterprise/2008/TechTips_Jan08.html Using JAX-WS with Maven thomas2004 wrote: > > Hi all, > > I use Eclipse 3.4 and has maven2 plugin installed. As I run "mvn package" > in Eclipse with following "pom.xml", I got following error: > > [ERROR] > > The following mojo encountered an error while executing: > Group-Id: org.codehaus.mojo > Artifact-Id: jaxws-maven-plugin > Version: 1.10 > Mojo: wsgen > brought in via: POM > > While building project: > Group-Id: com.test.jax.ws > Artifact-Id: TestJaxWs > Version: 1.0-SNAPSHOT > From file: C:\Project\TestJaxWs\pom.xml > Reason: Failed to execute wsgen > > But as I run in cmd-console, it is successful. Why? > > Here is my "pom.xml": > > <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/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>com.test.jax.ws</groupId> > <artifactId>TestJaxWs</artifactId> > <packaging>war</packaging> > <version>1.0-SNAPSHOT</version> > <name>TestJaxWs Maven Webapp</name> > <url>http://maven.apache.org</url> > <dependencies> > <!-- Testing --> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > <scope>test</scope> > </dependency> > <!-- Runtime --> > <dependency> > <groupId>local.sun.java.net</groupId> > <artifactId>jaxws-ri</artifactId> > <version>2.1-EA3-SNAPSHOT</version> > <type>pom</type> > </dependency> > </dependencies> > <pluginRepositories> > <pluginRepository> > <id>maven2-repository.dev.java.net</id> > <url>http://download.java.net/maven/2/</url> > </pluginRepository> > </pluginRepositories> > <build> > <finalName>TestJaxWs</finalName> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>jaxws-maven-plugin</artifactId> > <executions> > <execution> > <goals> > <goal>wsgen</goal> > </goals> > <configuration> > > <sei>com.test.ws.services.AddNumbersImpl</sei> > <!--for demo purpose only, the webapp does not--> > <!--need the generated wsdl files--> > <genWsdl>true</genWsdl> > <keep>true</keep> > </configuration> > </execution> > </executions> > </plugin> > <plugin> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > </plugins> > </build> > </project> > -- View this message in context: http://www.nabble.com/jaxws-maven-plugin-%3A-Failed-to-execute-wsgen-tp20470612p20556181.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
