Fergal Gavin created AXIS2-6022:
-----------------------------------

             Summary: XMLBeans binding extension not in classpath error when 
generating code using Axis2 1.8.0
                 Key: AXIS2-6022
                 URL: https://issues.apache.org/jira/browse/AXIS2-6022
             Project: Axis2
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.8.0
         Environment: Windows 10
Ant 1.10.6
            Reporter: Fergal Gavin


Hi folks,

I am working my way through upgrading Axis 2 from 1.6.2 to 1.8.0.

There seems to be a few differences in the JAR dependencies between the two 
versions but after solving a couple of these, I have hit the error below.

In the Axis 1.8.0 release notes, it states the following:
 * [https://axis.apache.org/axis2/java/core/release-notes/1.8.0.html]
 * To improve dependency management, the data binding JARs have been split to 
separate the code required at build time from the code required at runtime:
 ** {{axis2-xmlbeans}} has been split into {{axis2-xmlbeans}} and 
{{{}axis2-xmlbeans-codegen{}}}.

After some research, it seems to indicate that I need to add the 
"axis2-xmlbeans.codegen" JAR file to the classpath for code generation. 
However, this JAR file does not seem to be part of the Axis 1.8.0 deliverable 
(the axis2-xmlbeans JAR file is but the "codegen" JAR file is not.

The questions are:
 # Is this a defect or deliberate (omit the {{axis2-xmlbeans-codegen}} JAR file 
from the final Axis 1.8.0 deliverable). I see the source for the JAR file is 
still present alongside the other Axis 2 source 
([https://github.com/apache/axis-axis2-java-core/tree/master/modules/xmlbeans-codegen)]
 # Is there any documentation where the JAR dependency differences between the 
various versions of Axis are listed (JARs removed between versions and why, 
JARs added and why)?

Thanks,

Fergal

===================================

[JavaFromWSDL] Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: XMLBeans binding extension not in classpath
[JavaFromWSDL]  at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:163)
[JavaFromWSDL]  at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:54)
[JavaFromWSDL] Caused by: java.lang.RuntimeException: XMLBeans binding 
extension not in classpath
[JavaFromWSDL]  at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:90)
[JavaFromWSDL]  at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:116)
[JavaFromWSDL]  ... 1 more



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to