Hi devs,

I've been trying to use "axis2-wsdl2code-maven-plugin" in Rampart
maven2 build, but I run into some problems.

I configured it as below in the pom.xml[1], to use XMLBeans data
binding, but it generates a "XMLBeans binding extension not in
classpath" exception as in [2]. The problem is that it cannot find a
class in "axis2-jibx.jar", which was not in the classpath.

Then what I did was add axis2-jibx as a dependency to the parent
pom.xml which didn't work. After that I tried adding it as a plugin
dependency, and then placing <classpath
refid="maven.plugin.classpath"/> in the <configuration> element. This
didn't work as well.

Can somebody please help me?

Thanks in advance,
Dimuthu.


[1]
<plugin>
                        <groupId>org.apache.axis2.maven2</groupId>
                        <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
                        <version>SNAPSHOT</version>
                        <executions>
                                <execution>
                                <goals>
                                        <goal>wsdl2code</goal>
                                </goals>
                                <phase>generate-sources</phase>
                                <configuration>
<packageName>org.apache.axis2.oasis.ping</packageName>
                                        <wsdlFile>resources/ping.wsdl</wsdlFile>
                                        
<generateServerSide>true</generateServerSide>
                                        
<outputDirectory>src/main/java</outputDirectory>
                                        
<databindingName>xmlbeans</databindingName>
                                        
<generateAllClasses>true</generateAllClasses>
                        </configuration>
                                </execution>
                        </executions>
                </plugin>

[2]
java.lang.RuntimeException: XMLBeans binding extension not in classpath
       at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:74)
       at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)
       at 
org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:398)
       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.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:4

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to