This issue does not appear to be closed. But someone changed the fix version. I know that this was not scheduled for 3.0-alpha-1 so I moved it out.

On 29-Dec-08, at 4:30 AM, Henri Gomez wrote:

Hi to all,

I still got problems to use jaxws mojo with the embedded maven (futur 3.0).

I filled a JIRA (http://jira.codehaus.org/browse/MNG-3586) some time
ago and the bug is now closed.

The problem is I still get the problem (sample 'updated' project attached).

This project now works with Sun and IBM SDK since I added :

         <dependency>
           <groupId>com.sun</groupId>
           <artifactId>tools</artifactId>
           <version>1.5.0</version>
           <scope>system</scope>
           <systemPath>${java.home}/../lib/tools.jar</systemPath>
         </dependency>
       </dependencies>

But it won't on m2eclipse with embedded maven :

...

While building project:
Group-Id: mycorp.com
Artifact-Id: samplewsgen
Version: 1.0.0-SNAPSHOT
From file: C:\Documents and Settings\gomezhe\Bureau\sample-wsgen \pom.xml
Reason: Failed to execute wsgen

java.lang.NoClassDefFoundError: com/sun/mirror/apt/ AnnotationProcessorFactory
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org .codehaus .plexus.classworlds.realm.ClassRealm.loadRealmClass(ClassRealm.java: 174) at org .codehaus .plexus .classworlds.strategy.DefaultStrategy.loadClass(DefaultStrategy.java: 67) at org .codehaus .plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at com.sun.tools.ws.WsGen.doMain(WsGen.java:69)
at org .codehaus .mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:97) at org.codehaus.mojo.jaxws.MainWsGenMojo.execute(MainWsGenMojo.java: 14) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 579) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:191) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java: 223) at org .apache .maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at org .apache .maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java: 904) at org .apache .maven .embedder .MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)



Error stacktrace:
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
in the plugin manager executing goal
'org.codehaus.mojo:jaxws-maven-plugin:1.10:wsgen': Mojo execution
failed.
at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:505) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:191) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java: 223) at org .apache .maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at org .apache .maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java: 904) at org .apache .maven .embedder .MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo
execution failed.
at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 601) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
        ... 12 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
execute wsgen
at org .codehaus .mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:102) at org.codehaus.mojo.jaxws.MainWsGenMojo.execute(MainWsGenMojo.java: 14) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 579)
        ... 13 more
Caused by: java.lang.NoClassDefFoundError:
com/sun/mirror/apt/AnnotationProcessorFactory
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org .codehaus .plexus.classworlds.realm.ClassRealm.loadRealmClass(ClassRealm.java: 174) at org .codehaus .plexus .classworlds.strategy.DefaultStrategy.loadClass(DefaultStrategy.java: 67) at org .codehaus .plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at com.sun.tools.ws.WsGen.doMain(WsGen.java:69)
at org .codehaus .mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:97)
        ... 15 more

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Dec 29 10:28:09 CET 2008
[INFO] Final Memory: 3M/13M
[INFO] ------------------------------------------------------------------------


Should I reopen the JIRA ?

Regards
<sample- wsgen -2 .zip >---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

Selfish deeds are the shortest path to self destruction.

 -- The Seven Samuari, Akira Kurosawa


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to