Tony,
thanks for the tip. I added the section but it did not change the outcome.
Since then I've tried to use the wsdl2java.bat/wsdl2java.sh without the
maven plugin.
This also ends with an exception. However another one...
Obvisiously the wsdl is far from perfect... But it can be used to generate
java code with axis 1.2.1 and gSOAP so it can't be that bad.
Using AXIS2_HOME: D:\JavaStuff\axis2-1.1.1
Using JAVA_HOME: C:\Programme\Java\jdk1.6.0
22.02.2007 08:35:01 org.apache.axis2.description.WSDL11ToAxisServiceBuilder
proc
essBinding
WARNUNG: Unable to find a wsdl:binding/wsdl:operation/wsdl:fault for fault
named
DealerNumberRequiredException defined in
wsdl:portType/wsdl:operation/@name=get
Liste
22.02.2007 08:35:01 org.apache.axis2.description.WSDL11ToAxisServiceBuilder
proc
essBinding
WARNUNG: Unable to find a wsdl:binding/wsdl:operation/wsdl:fault for fault
named
NotAuthorizedException defined in
wsdl:portType/wsdl:operation/@name=getListe
22.02.2007 08:35:01 org.apache.axis2.description.WSDL11ToAxisServiceBuilder
proc
essBinding
WARNUNG: Unable to find a wsdl:binding/wsdl:operation/wsdl:fault for fault
named
WSException defined in wsdl:portType/wsdl:operation/@name=getListe
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
Thanks,
Anders
"Tony Ambrozie" <[EMAIL PROTECTED]> schrieb am 21.02.2007 17:11:57:
> I believe you are missing wsdl4 dependency. wsdl2code plugin uses
> it and when I looked at it some time ago it did not have it in its
> pom, so you may need to add it in the wsdl2code plugin dependencies
section:
>
> <dependency>
> <groupId>wsdl4j</groupId>
> <artifactId>wsdl4j</artifactId>
> <version>1.6.1</version>
> </dependency>
>
> Thanks'
> On 2/20/07, Anders Malmborg <[EMAIL PROTECTED]> wrote:
>
> Running mvn generate-source I get the following error:
> [INFO] [axis2-wsdl2code:wsdl2code {execution: default}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] javax/wsdl/WSDLException
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
> at
> org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo
> .java:396)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPlugi
> nManager.java:412)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:534)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:475)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:454)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:306)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:273)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLi
> fecycleExecutor.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 (DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:589)
> 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]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Tue Feb 20 15:48:07 CET 2007
> [INFO] Final Memory: 3M/7M
> [INFO]
> ------------------------------------------------------------------------
>
> My pom.xml (the build part) lokks as follows:
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.axis2.maven2</groupId>
> <artifactId>axis2-wsdl2code-maven-plugin</
> artifactId>
> <executions>
> <execution>
> <goals>
> <goal>wsdl2code</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <outputDirectory>target/generated</
> outputDirectory>
> <packageName>skoda.dispoliste</packageName>
> <wsdlFile>src/main/wsdl/DispoListe.wsdl</
> wsdlFile>
> </configuration>
> </plugin>
> </plugins>
> </build>
> Any idea what the javax/wsdl/WSDLException can be?
>
> Thanks,
> Anders Malmborg
>
>
> ---------------------------------------------------------------------
> 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]