I think it means that you have to add the jax-ws runtime as a dependency in your project.
-Wes On Fri, Aug 7, 2009 at 3:48 PM, monkeyden<[email protected]> wrote: > > Thanks for the reply Wes. I'm not completely in business, but I think I've > progressed thanks to you. At least it's trying to execute wsgen. I now get > this error, which I've seen elsewhere....also without a solution. > > Embedded error: javax/jws/WebService > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > wsgen > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > 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) > 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:451) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > ... 16 more > Caused by: java.lang.NoClassDefFoundError: javax/jws/WebService > at > com.sun.tools.ws.wscompile.WsgenOptions.validateEndpointClass(WsgenOptions.java:215) > at > com.sun.tools.ws.wscompile.WsgenOptions.validate(WsgenOptions.java:197) > at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:118) > at com.sun.tools.ws.WsGen.doMain(WsGen.java:69) > at > org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:97) > ... 19 more > > > > Wes Wannemacher wrote: >> >> Try attaching it to a phase that happens after compile, maybe >> process-classes - >> >> <plugin> >> <groupId>org.codehaus.mojo</groupId> >> <artifactId>jaxws-maven-plugin</artifactId> >> <version>1.7</version> >> <executions> >> <execution> >> <goals> >> <goal>wsgen</goal> >> </goals> >> <phase>process-classes</phase> >> <configuration> >> <sei>com.symcare.intouch.test.HelloWorld</sei> >> <genWsdl>true</genWsdl> >> <verbose>true</verbose> >> </configuration> >> </execution> >> </executions> >> </plugin> >> >> >> >> On Fri, Aug 7, 2009 at 2:02 PM, monkeyden<[email protected]> wrote: >>> >>> So now I'm getting this error, which I think is fixable. >>> >>> [INFO] [jaxws:wsgen {execution: default}] >>> Class not found: "com.mycompany.intouch.test.HelloWorld" >>> >>> How do I go about running the compiler in a phase prior to the >>> jaxws-plugin >>> running, so the class is available for WS wiring? >>> >>> >>> monkeyden wrote: >>>> >>>> Does anyone have working example of the jaxws-maven-plugin? I have seen >>>> many posts on the web and all seem to have problems with it. They all >>>> seem >>>> to relate to a version problem with the jaxws-api dependency and the >>>> repository in which it is found. The central repo apparently has an >>>> incorrect version. It seems we have to cobble this thing together to >>>> get >>>> it to work. >>>> >>>> I think just the plugin declaration and the repositories used should be >>>> enough. Here is what I have so far.... >>>> >>>> >>>> <repositories> >>>> <!-- needed to retrieve a working jaxws-api-2.1.pom --> >>>> <repository> >>>> <id>java.net - Dev</id> >>>> <url>https://maven-repository.dev.java.net/repository</url> >>>> <layout>legacy</layout> >>>> </repository> >>>> <!-- needed for the jaxws-maven-plugin --> >>>> <repository> >>>> <id>java.net - Maven2</id> >>>> <url>http://download.java.net/maven/2</url> >>>> <layout>legacy</layout> >>>> </repository> >>>> </repositories> >>>> >>>> >>>> <plugin> >>>> <groupId>org.codehaus.mojo</groupId> >>>> <artifactId>jaxws-maven-plugin</artifactId> >>>> <version>1.7</version> >>>> <executions> >>>> <execution> >>>> <goals> >>>> <goal>wsgen</goal> >>>> </goals> >>>> <configuration> >>>> <sei>com.symcare.intouch.test.HelloWorld</sei> >>>> <genWsdl>true</genWsdl> >>>> <verbose>true</verbose> >>>> </configuration> >>>> </execution> >>>> </executions> >>>> </plugin> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/jaxws-maven-plugin-issues-tp24869071p24869452.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] >>> >>> >> >> >> >> -- >> Wes Wannemacher >> >> Head Engineer, WanTii, Inc. >> Need Training? Struts, Spring, Maven, Tomcat... >> Ask me for a quote! >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > > -- > View this message in context: > http://www.nabble.com/jaxws-maven-plugin-issues-tp24869071p24870509.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] > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
