Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-6022

XMLBeans binding extension not in classpath error when generating code using Axis2 1.8.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.8.1
    • codegen
    • None
    • Windows 10
      Ant 1.10.6

    Description

      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:

      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:

      1. 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)
      2. 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

      Attachments

        Activity

          People

            robertlazarski Robert Lazarski
            fergal.gavin@ie.ibm.com Fergal Gavin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: