The trouble here is the  maven looks for maven-central first and pick up a
out of date jaxws-api-2.1 which is really
Sun's fault by changing the api.


see

http://jira.codehaus.org/browse/MEV-498

-D

On 2/6/07, Dominique Jean-Prost (JIRA) <[EMAIL PROTECTED]> wrote:


   [
http://jira.codehaus.org/browse/MOJO-639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86928]

Dominique Jean-Prost commented on MOJO-639:
-------------------------------------------

Well, I don't understand. None of the artifcats you mentionned contains
the missing class. Can you check them ? I did, and I don't find the
com/sun/xml/ws package

> jaxws plugin : java.lang.NoClassDefFoundError:
com/sun/xml/ws/util/localization/LocalizableMessageFactory
>
---------------------------------------------------------------------------------------------------------
>
>                 Key: MOJO-639
>                 URL: http://jira.codehaus.org/browse/MOJO-639
>             Project: Mojo
>          Issue Type: Bug
>            Reporter: Dominique Jean-Prost
>
> <plugin>
>                               <groupId>org.codehaus.mojo</groupId>
>
<artifactId>jaxws-maven-plugin</artifactId>
>                               <executions>
>                                       <execution>
>                                               <goals>
>
<goal>wsimport</goal>
>                                               </goals>
>                                       </execution>
>                               </executions>
> </plugin>
> When using jaxws maven plugin, I get the following exception. I guess a
dependcy is missing somewhere ?
> java.lang.NoClassDefFoundError:
com/sun/xml/ws/util/localization/LocalizableMessageFactory
>         at com.sun.tools.ws.resources.WscompileMessages.<clinit>(
WscompileMessages.java:15)
>         at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java
:143)
>         at org.codehaus.mojo.jaxws.WsImportMojo.wsImport(
WsImportMojo.java:230)
>         at org.codehaus.mojo.jaxws.WsImportMojo.processWsdlViaUrls(
WsImportMojo.java:217)
>         at org.codehaus.mojo.jaxws.WsImportMojo.execute(
WsImportMojo.java:148)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
>         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
>         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
>         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
>         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
>         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(
Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(
Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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

   http://xircles.codehaus.org/manage_email


Reply via email to