I already fixed it on Maven trunk and Henri is going to validate that
it works, but the changes in Maven trunk will not be incorporated into
m2e for at least a few weeks.
On 15-Jan-09, at 8:16 PM, Guofeng Zhang wrote:
I am sorry to post this again. But I stuck here and want to know if
it could be solved.
I found the same issue reported in http://jira.codehaus.org/browse/MNG-3586
. it said it will be fixed in 3.0-alpha-2. Does this mean that
m2eclipse won’t support to build JAX-WS application now?
Thanks for your advice very much!
Guofeng
From: Guofeng Zhang [mailto:[email protected]]
Sent: Thursday, January 15, 2009 5:50 PM
To: M2EUserList
Subject: [m2eclipse-user] ClassNotFoundException:
com.sun.mirror.apt.AnnotationProcessorFactory, How to solve it?
Hi,
I use JAX-WS 2.1. My project is built successfully using command
line with maven-2.1.0-M1
But when I run the build in Eclipse with M2Eclipse
0.9.7.200811301806 stable dev version, I got the following error
(the stable release version has the same issue):
org.apache.maven.lifecycle.LifecycleExecutionException: Internal
error in the plugin manager executing goal 'org.codehaus.mojo:jaxws-
maven-plugin:1.11: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)
...
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)
... 26 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
execute wsgen
at
org
.codehaus
.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:102)
at
org
.apache
.maven
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
579)
... 27 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:621)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
... 28 more
Caused by: java.lang.ClassNotFoundException:
com.sun.mirror.apt.AnnotationProcessorFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
... 44 more
Could anyone kindly tell me how to solve it.?
Thanks
Guofeng
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
We all have problems. How we deal with them is a measure of our worth.
-- Unknown