Try adding a dependency on (below) inside the plugin:
<plugin> ... <dependencies> <dependency> <groupId>org.apache.ws.commons.neethi</groupId> <artifactId>neethi</artifactId> <version>2.0</version> </dependency> </dependencies> </plugin> I found this by entering the class identified by the NoClassDef into www.mvnrepository.com. Not sure if it will solve all your problems. Wayne On 5/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Thanks for looking into Jochen. I am getting following error: [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org/apache/neethi/Policy [INFO] ------------------------------------------------------------------------ [DEBUG] Trace java.lang.NoClassDefFoundError: org/apache/neethi/Policy at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration Engine.java:103) at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.ja va:396) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:48 0) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.jav a:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.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:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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) [INFO] ------------------------------------------------------------------------ Here is the plug-in details I am using. Let me know if I am missing something here? <plugin> <groupId>org.apache.axis2.maven2</groupId> <artifactId>axis2-wsdl2code-maven-plugin</artifactId> <executions> <execution> <goals> <goal>wsdl2code</goal> </goals> </execution> </executions> <configuration> <generateServerSide>true</generateServerSide> <generateServerSideInterface>true</generateServerSideInterface> <generateAllClasses>true</generateAllClasses> <generateServiceXml>true</generateServiceXml> <generateTestcase>true</generateTestcase> <packageName>some.package</packageName> <namespaceToPackages>some.package=some.package</namespaceToPackages> <wsdlFile>C:\test.wsdl</wsdlFile> <outputDirectory>src/main</outputDirectory> <syncMode>both</syncMode> <databindingName>xmlbeans</databindingName> <language>java</language> </configuration> </plugin> -----Original Message----- From: Jochen Wiedmann [mailto:[EMAIL PROTECTED] Sent: Monday, May 07, 2007 11:54 AM To: Maven Users List Subject: Re: axis2-wsdl2code-maven-plugin not working for me On 5/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I still some help to use the axis2 plug in. Looks like this plug in is > missing some of the dependency and I am not sure of it. Use the -X option and let's see a stack trace or whatever useful information you can provide. -- My cats know that I am a loser who goes out for hunting every day without ever returning as much as a single mouse. Fortunately, I've got a wife who's a real champ: She leaves the house and returns within half an hour, carrying whole bags full of meal. --------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]