jaxws-api 2.2-1 is at http://repo1.maven.org/maven2/javax/xml/ws/jaxws-api/2.1-1/
the plugin is at http://download.java.net/maven/2 The rest of required artifacts are at the java.net maven.1 legacy repo http://download.java.net/maven/1 So you need 2 maven2 repos and 1 maven repo to get it to work :-) -D On Nov 15, 2007 2:14 AM, CodingPlayer <[EMAIL PROTECTED]> wrote: > > hi wayne, > > thx for your hint. > > just posted the thread at the users forum. > > but since i couldn't find any users forum / mailing list (at java.net) > https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/mail-lists.html > > i decided to post it to the (old) codehaus mailinglist. > http://mojo.codehaus.org/jaxws-maven-plugin/mail-lists.html > > > best regards > R.C. > > > Wayne Fay wrote: > > > > > You should probably also post this request on the jaxws plugin > > users/dev list. Since there is a lower chance that someone here is > > using jaxws and will respond, but a very high chance that someone on > > that list is using jaxws. > > > > Wayne > > > > On 11/14/07, CodingPlayer <[EMAIL PROTECTED]> wrote: > >> > >> Hi There, > >> > >> I'm an absolute noob to webservices, who is currently trying to compile a > >> webservice annotated class, with the actual jaxws-maven-plugin. > >> > >> i already lost 3 days, and still didn't find a way to get it running > >> properly. > >> > >> to find the error i stepped back, and simply tried to get the wsgen > >> example > >> running: > >> https://jax-ws-commons.dev.java.net/source/browse/*checkout*/jax-ws-commons/trunk/jaxws-maven-plugin/src/it/wsgen/pom.xml?content-type=text%2Fplain&rev=110 > >> > >> after removing the version (which points to a SNAPSHOT which can't be > >> downloaded) i have the following pom.xml: > >> > >> <?xml version="1.0" encoding="UTF-8" ?> > >> > >> <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>org.codehaus.mojo.jaxws.it</groupId> > >> <artifactId>helloworldws</artifactId> > >> <version>1.0-SNAPSHOT</version> > >> > >> <packaging>war</packaging> > >> <name>helloworld</name> > >> > >> > >> <dependencies> > >> <dependency> > >> <groupId>com.sun.xml.ws</groupId> > >> <artifactId>jaxws-rt</artifactId> > >> <version>2.1</version> > >> </dependency> > >> </dependencies> > >> > >> <!-- temporary only until java.net maven2 repo is ready--> > >> <repositories> > >> <repository> > >> <id>java.net</id> > >> <url>https://maven-repository.dev.java.net/nonav/repository/</url> > >> <layout>legacy</layout> > >> </repository> > >> </repositories> > >> > >> <build> > >> > >> <finalName>${artifactId}</finalName> > >> > >> <plugins> > >> > >> <plugin> > >> <groupId>org.apache.maven.plugins</groupId> > >> <artifactId>maven-compiler-plugin</artifactId> > >> <configuration> > >> <source>1.5</source> > >> <target>1.5</target> > >> </configuration> > >> > >> <executions> > >> <execution> > >> <id>compile</id> > >> <goals> > >> <goal>compile</goal> > >> </goals> > >> <phase>initialize</phase> > >> </execution> > >> </executions> > >> > >> </plugin> > >> > >> > >> <plugin> > >> <groupId>org.codehaus.mojo</groupId> > >> <artifactId>jaxws-maven-plugin</artifactId> > >> <executions> > >> <execution> > >> <goals> > >> <goal>wsgen</goal> > >> </goals> > >> <phase>generate-sources</phase> > >> <configuration> > >> <sei>org.codehaus.mojo.jaxws.it.HelloWorldImpl</sei> > >> <genWsdl>true</genWsdl> <!-- for demo purpose only, the > >> wepapp does not need those the generated wsdl files--> > >> <keep>true</keep> > >> </configuration> > >> </execution> > >> </executions> > >> </plugin> > >> > >> > >> <plugin> > >> <groupId>org.mortbay.jetty</groupId> > >> <artifactId>maven-jetty-plugin</artifactId> > >> <version>6.0.1</version> > >> <configuration> > >> <scanIntervalSeconds>10</scanIntervalSeconds> > >> <contextPath>/</contextPath> > >> <!--jettyEnvXml>${basedir}/src/jetty-env.xml</jettyEnvXml--> > >> <connectors> > >> <connector > >> implementation="org.mortbay.jetty.nio.SelectChannelConnector"> > >> <port>9090</port> > >> <maxIdleTime>60000</maxIdleTime> > >> </connector> > >> </connectors> > >> </configuration> > >> </plugin> > >> > >> </plugins> > >> </build> > >> </project> > >> > >> > >> when running 'mvn install -X -e' from the command line i get the > >> following > >> error: > >> > >> [DEBUG] jaxws:wsgen args: [-keep, -d, C:\projects\jax-ws\target\classes, > >> -cp, C:\projects\jax-ws\target\classes;D:\data > >> Maven_repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar;D:\data\Maven_repository\javax\xml\ws\jaxws-api\2.1\jaxws > >> api-2.1.jar;D:\data\Maven_repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;D:\data\Maven_repository\com\sun\xml\ > >> essaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;D:\data\Maven_repository\com\sun\xml\stream\buffer\streambuffer\0.4\strea > >> buffer-0.4.jar;D:\data\Maven_repository\com\sun\xml\stream\sjsxp\1.0\sjsxp-1.0.jar;D:\data\Maven_repository\com\sun\xml > >> bind\jaxb-impl\2.1.2\jaxb-impl-2.1.2.jar;D:\data\Maven_repository\com\sun\xml\ws\jaxws-rt\2.1\jaxws-rt-2.1.jar;D:\data\ > >> aven_repository\javax\xml\stream\stax-api\1.0\stax-api-1.0.jar;D:\data\Maven_repository\javax\activation\activation\1.1 > >> activation-1.1.jar;D:\data\Maven_repository\org\jvnet\staxex\stax-ex\1.0\stax-ex-1.0.jar, > >> -wsdl, -r, C:\projects\jax-ws > >> target\jaxws\wsgen\wsdl, org.codehaus.mojo.jaxws.it.HelloWorldImpl] > >> [INFO] > >> ------------------------------------------------------------------------ > >> [ERROR] BUILD ERROR > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Failed to execute wsgen > >> > >> Embedded error: javax/jws/WebService > >> [INFO] > >> ------------------------------------------------------------------------ > >> [DEBUG] Trace > >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > >> wsgen > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:4 > >> 0) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.ja > >> a:311) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) > >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) > >> 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:96) > >> at > >> org.codehaus.mojo.jaxws.MainWsGenMojo.execute(MainWsGenMojo.java:14) > >> at > >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > >> ... 16 more > >> Caused by: java.lang.NoClassDefFoundError: javax/jws/WebService > >> at > >> com.sun.tools.ws.wscompile.WsgenOptions.validateEndpointClass(WsgenOptions.java:198) > >> at > >> com.sun.tools.ws.wscompile.WsgenOptions.validate(WsgenOptions.java:180) > >> at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:88) > >> at com.sun.tools.ws.WsGen.doMain(WsGen.java:55) > >> at > >> org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java:91) > >> ... 19 more > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: 2 seconds > >> [INFO] Finished at: Wed Nov 14 15:26:30 CET 2007 > >> [INFO] Final Memory: 6M/1016M > >> [INFO] > >> ------------------------------------------------------------------------ > >> > >> > >> > >> since i'm almost getting mad, i also tried to run an ant-task, using the > >> maven-antrun-plugin instead of the jaxws-maven-plugin: > >> > >> <plugin> > >> <artifactId>maven-antrun-plugin</artifactId> > >> <executions> > >> <execution> > >> <phase>compile</phase> > >> <configuration> > >> <tasks> > >> <exec executable="wsgen"> > >> <arg value="-classpath"/> > >> <arg > >> value="${project.build.directory}/classes"/> > >> <arg value="-d"/> > >> <arg > >> value="${project.build.directory}/classes"/> > >> <arg value="-wsdl" /> > >> <arg value="-keep" /> > >> <arg > >> value="org.codehaus.mojo.jaxws.it.HelloWorldImpl"/> > >> </exec> > >> </tasks> > >> </configuration> > >> <goals> > >> <goal>run</goal> > >> </goals> > >> </execution> > >> </executions> > >> </plugin> > >> > >> but with this approach i have the problem, that it works only when adding > >> the java6 sdk binary folder to the system path, but since i don't want to > >> use java6, i can't use this approach either. > >> > >> i even tried to run wsgen from the command line by myself, which worked > >> fine > >> (when adding the path to java6). > >> > >> > >> > >> So PLEASE let me know if you have any ideas. > >> > >> Maybe one of you would be so kind, to post a FULL WORKING pom.xml using > >> java5 with the jaxws-maven-plugin (or even fix the error in the example > >> pom.xml). > >> > >> waiting for any replies that could help me out. > >> > >> thx @all > >> R.C. > >> -- > >> View this message in context: > >> http://www.nabble.com/-M2--jaxws-maven-plugin-vs.-ant-task-using-wsgen-tf4805393s177.html#a13747745 > >> Sent from the Maven - Users mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/-M2--jaxws-maven-plugin-vs.-ant-task-using-wsgen-tf4805393s177.html#a13764783 > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]