axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bevilacqua-Linn" <michael.bevilacqual...@gmail.com>
Subject Axis 2 WSDL2Code Maven Plugin
Date Mon, 20 Nov 2006 19:48:49 GMT
Hello,

Has anyone managed to get the WSDL2Code Maven plugin to work?  Trying to do
so has been a real struggle for me.  The POM snippet in the guide isn't
valid, as far as I can tell.  (The configurations element is nested inside
the executions element, which isn't allowed.)  I had to add wsdl4java as a
dependency to the POM, and a few other things.

I  now get an IOException that seems to indicate the plugin is having
trouble finding the WSDL to parse.  Full stack trace follows:

java.io.FileNotFoundException:
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(
CodegenConfigLoader.java:161)
        at org.apache.axis2.wsdl.codegen.CodeGenConfiguration.<init>(
CodeGenConfiguration.java:371)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
CodeGenerationEngine.java:85)
        at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(
WSDL2CodeMojo.java:396)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:488)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.jav
a:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.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(
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)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error parsing WSDL

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Nov 20 14:45:49 EST 2006
[INFO] Final Memory: 3M/7M
[INFO]
------------------------------------------------------------------------


I've tried using both the default wsdl name, service.wsdl and a named wsdl.
POM snippet of the named version follows.

<configuration>
  <packageName>com.comcast.pe.identityjoin</packageName>
  <wsdlFile>src\main\axis2\accountConcrete.wsdl</wsdlFile>
  <generateServerSide>true</generateServerSide>
  <generateServerSideInterface>true</generateServerSideInterface>
  <generateServicesXml>true</generateServicesXml>
  <databindingName>xmlbeans</databindingName>
</configuration>

Any help would be appreciated.

-Michael B.**

Mime
View raw message