axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: [AXIS2] java2wsdl maven2 plugin problems
Date Tue, 15 May 2007 04:43:59 GMT
Jared, Scot,

Is there a JIRA for it? can you please create one as i don't remember
seeing one for this.

thanks,
dims

On 5/15/07, Jared Blitzstein <mailing-list@blitzstein.net> wrote:
> I'm having the exact same problem. Has anyone come up with a solution?
>
> On Feb 21, 2007, at 4:36 PM, Scot Hale wrote:
>
> > Hi all,
> > I am trying to use the maven java2wsdl 1.1 plugin, and I have run into
> > several problems.  I am using maven 2.0.5, java 5, and Linux Ubuntu
> > 6.10.
> >
> > 1.) Documentation:  The example snippet on
> > http://ws.apache.org/axis2/tools/1_1/maven-plugins/maven-java2wsdl-
> > plugin.html
> > is wrong and won't work.  This part:
> >
> >          </execution>
> >          <configuration>
> >            <className>com.foo.myservice.MyHandler</className>
> >          </configuration>
> >        </executions>
> >      </plugin>
> >    </plugins>
> >  </build>
> >
> > Should be
> >
> >          </execution>
> >        </executions>
> >        <configuration>
> >          <className>com.foo.myservice.MyHandler</className>
> >        </configuration>
> >      </plugin>
> >    </plugins>
> >  </build>
> >
> > 2.) Documentation: The example command doesn't work (on the same
> > page).
> >
> > mvn java2wsdl:java2wsdl
> >
> > Should be
> >
> > mvn axis-java2wsdl:java2wsdl
> >
> > 3.) Strangly, a directory gets created in my maven project called
> > "home".  I think this might be causing other issues as well.  It looks
> > like it is taking the full path to my project (for example
> > /home/scot/src/webservice/ ) and lopping off the first "/", then
> > creating a new directory ( for example
> > /home/scot/src/webservice/home/scot/src/webservice/target/... ).
> >
> > 4.) When I run the plugin it can't find a class that exists in the
> > standard maven2 directory src/main/java/ ( for example
> > src/main/java/com/DummyHandler.java ).  I noticed someone else
> > complained about this on January 22nd, but I didn't see a reply to his
> > post to the mailing list.
> >
> > java.lang.Exception: java.lang.ClassNotFoundException:
> > com.DummyHandler
> >        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate
> > (Java2WSDLCodegenEngine.java:58)
> >        at org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute
> > (Java2WSDLMojo.java:146)
> >        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> > (DefaultPluginManager.java:420)
> >        at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > (DefaultLifecycleExecutor.java:539)
> >        at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneG
> > oal(DefaultLifecycleExecutor.java:493)
> >        at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > (DefaultLifecycleExecutor.java:463)
> >        at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
> > leFailures(DefaultLifecycleExecutor.java:311)
> >        at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
> > s(DefaultLifecycleExecutor.java:278)
> >        at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> > (DefaultLifecycleExecutor.java:143)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > 330)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> >        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: java.lang.ClassNotFoundException: com.DummyHandler
> >        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect
> > (RealmClassLoader.java:195)
> >        at org.codehaus.classworlds.DefaultClassRealm.loadClass
> > (DefaultClassRealm.java:255)
> >        at org.codehaus.classworlds.DefaultClassRealm.loadClass
> > (DefaultClassRealm.java:274)
> >        at org.codehaus.classworlds.DefaultClassRealm.loadClass
> > (DefaultClassRealm.java:274)
> >        at org.codehaus.classworlds.RealmClassLoader.loadClass
> > (RealmClassLoader.java:214)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> > 319)
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:242)
> >        at
> > org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName
> > (Java2WSDLUtils.java:63)
> >        at
> > org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName
> > (Java2WSDLUtils.java:82)
> >        at
> > org.apache.ws.java2wsdl.Java2WSDLBuilder.getSchemaTargetNamespace
> > (Java2WSDLBuilder.java:56)
> >        at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL
> > (Java2WSDLBuilder.java:152)
> >        at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate
> > (Java2WSDLCodegenEngine.java:56)
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message