You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by thomas2004 <th...@yahoo.de> on 2008/11/12 23:13:58 UTC

jaxws-maven-plugin : Failed to execute wsgen

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.weichen.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?
-- 
View this message in context: http://www.nabble.com/jaxws-maven-plugin-%3A-Failed-to-execute-wsgen-tp20470612p20470612.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: jaxws-maven-plugin : Failed to execute wsgen

Posted by Milos Kleint <mk...@gmail.com>.
Not sure about eclipse, but the netbeans issue could be caused by the
fact that the default build execution means in 6.1 was internal
embedded maven. You had to explicitly mark that you want the project
(or all projects) build with external maven.
the embedded maven used is not 100% compatible with the 2.0.9 bits and
many plugins don't cope with embedded builds well.
Therefore in netbeans 6.5, we strive to find the default command line
maven and use it if found on PATH. That shall reduce the likelihood of
using the embedded maven for building (still used for project loading
in the IDE)

Regards

Milos

On Tue, Nov 18, 2008 at 10:34 AM, bakann <ba...@gmail.com> wrote:
>
> 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?
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: jaxws-maven-plugin : Failed to execute wsgen

Posted by bakann <ba...@gmail.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: jaxws-maven-plugin : Failed to execute wsgen

Posted by bakann <ba...@gmail.com>.
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-tp20470612p20556227.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org