All,
I am new to Maven. I started getting the following error from
WSDL2Java plugin for Maven:
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] error executing plugin
Embedded error: WSDL2Java execution failed
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: error executing
plugin
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java: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:280)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: error
executing plugin
at
org.codehaus.mojo.axistools.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:320
)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
... 16 more
Caused by: org.codehaus.mojo.axistools.axis.AxisPluginException:
WSDL2Java execution failed
at
org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.execute(Def
aultWSDL2JavaPlugin.java:297)
at
org.codehaus.mojo.axistools.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:316
)
... 18 more
Caused by: java.lang.ArrayStoreException
at java.lang.System.arraycopy(Native Method)
at java.util.ArrayList.toArray(ArrayList.java:304)
at
org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.generateWSD
LArgumentList(DefaultWSDL2JavaPlugin.java:668)
at
org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.execute(Def
aultWSDL2JavaPlugin.java:286)
... 19 more
This is happening when I try to run Maven on our Unix server (It was
working fine before, this started happening after a re-boot). The same
stuff seems to run fine when run on our Windows development box.
Here's the extract from pom.xml:
<!-- generate the Axis code from the WSDL/Schemas -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<configuration>
<noWrapped>true</noWrapped>
<!-- serverSide must be set to
true to generate deploy.wsdd -->
<serverSide>true</serverSide>
<timeout>-1</timeout>
<typeMappingVersion>1.1
</typeMappingVersion>
<wrapArrays>true</wrapArrays>
<wsdlFiles>
<!-- list the wsdl files
to generate code for -->
<wsdlFile>maintainPayee200802.wsdl</wsdlFile>
</wsdlFiles>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Any help would be greatly appreciated.
Thanks,
Aby