You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Guillaume Boucherie <gu...@gmail.com> on 2007/04/23 11:10:20 UTC

wsdl2code maven2 plugin

Hi all,

I try to use the wsdl2code maven2 plugin but I have the following error :

E:\projects\ideo-sforce-api\trunk>mvn clean axis2-wsdl2code:wsdl2code -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'axis2-wsdl2code'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building ideo-sforce-api
[INFO]    task-segment: [clean, axis2-wsdl2code:wsdl2code]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory E:\projects\ideo-sforce-api\trunk\target
[INFO] Deleting directory E:\projects\ideo-sforce-api\trunk\target\classes
[INFO] Deleting directory
E:\projects\ideo-sforce-api\trunk\target\test-classes
Downloading:
http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
Downloading:
http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom
Downloading: http://repo1.maven.org/maven//woodstox/poms/wstx-asl-3.0.1.pom
Downloading:
http://ws.zones.apache.org/repository//woodstox/poms/wstx-asl-3.0.1.pom
Downloading:
http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
Downloading:
http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom
Downloading: http://repo1.maven.org/maven//jaxen/poms/jaxen-1.1-beta-10.pom
Downloading:
http://ws.zones.apache.org/repository//jaxen/poms/jaxen-1.1-beta-10.pom
Downloading:
http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading:
http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
[INFO] [axis2-wsdl2code:wsdl2code]
E:\projects\ideo-sforce-api\trunk\src\main\axis2\service.wsdl
log4j:WARN No appenders could be found for logger (
org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
java.io.FileNotFoundException:  (No such file or directory)
        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:397)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:463)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java: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: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)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error parsing WSDL

 (No such file or directory)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error parsing WSDL
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:564)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:463)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java: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: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: org.apache.maven.plugin.MojoExecutionException: Error parsing
WSDL
        at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(
WSDL2CodeMojo.java:405)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
parsing WSDL
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
CodeGenerationEngine.java:116)
        at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(
WSDL2CodeMojo.java:397)
        ... 18 more
Caused by: java.lang.RuntimeException: The specified output location is not
a directory!
        at org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(
CodegenConfigLoader.java:164)
        at org.apache.axis2.wsdl.codegen.CodeGenConfiguration.<init>(
CodeGenConfiguration.java:371)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(
CodeGenerationEngine.java:85)
        ... 19 more
Caused by: java.io.FileNotFoundException:  (No such file or directory)
        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)
        ... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Mon Apr 23 11:04:39 CEST 2007
[INFO] Final Memory: 4M/9M
[INFO]
------------------------------------------------------------------------

E:\projects\ideo-sforce-api\trunk>

And I configure my plugin like this :

      <plugin>
        <groupId>org.apache.axis2.maven2</groupId>
        <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>wsdl2code</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <packageName>test</packageName>
          <outputDirectory>${basedir}/test</outputDirectory>
        </configuration>
      </plugin>

I didn't why I have a FileNotFoundException.
Can someone help me ?
Thanks

Guillaume Boucherie