Getting Exception while generating classes for a wsdl with xmlbeans
-------------------------------------------------------------------

                 Key: AXIS2-5088
                 URL: https://issues.apache.org/jira/browse/AXIS2-5088
             Project: Axis2
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.6.0
            Reporter: santosh
            Priority: Blocker



I am trying to generate classes for a wsdl with xmlbeans options. I am getting 
this error.


> >> Retrieving document at 'Sugar\Sugar_V1_2.xml'.
> >> Retrieving schema at 'http://schemas.xmlsoap.org/soap/encoding/',
> relative to 'file:/D:/Temp/axis2/bin/Sugar/Sugar_V1_2.xml'.
> >> Retrieving schema at 'http://schemas.xmlsoap.org/soap/encoding/',
> relative to 'file:/D:/Temp/axis2/bin/Sugar/Sugar_V1_2.xml'.
> >> [INFO] Resolving schema with publicId [
> http://schemas.xmlsoap.org/soap/encoding/] and systemId [
> http://schemas.xmlsoap.org/soap/encoding/]
> >> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> >>        at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
> >>        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> >>        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> >> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> >>        at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:126)
> >>        at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
> >>        ... 2 more
> >> Caused by: java.lang.reflect.InvocationTargetException
> >>        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:597)
> >>        at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:115)
> >>        ... 3 more
> >> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
> http://schemas.xmlsoap.org/soap/encoding/:48:1: error:
> sch-props-correct.2: Duplicate global type: Array@
> http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in
> file: null)
> >>        at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
> >>        ... 8 more
> >> Caused by: org.apache.xmlbeans.XmlException:
> http://schemas.xmlsoap.org/soap/encoding/:48:1: error:
> sch-props-correct.2: Duplicate global type: Array@
> http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in
> file: null)
> >>        at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
> >>        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:597)
> >>        at
> org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
> >>        at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:189)
> >>        ... 8 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to