WSDL2Java fails to resolve elements in xsd with imported namespaces
-------------------------------------------------------------------

                 Key: AXIS2-3054
                 URL: https://issues.apache.org/jira/browse/AXIS2-3054
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.2
         Environment: Windows XP, Java 1.5.08
            Reporter: Gary Parker
            Priority: Critical
             Fix For: 1.2


I'm trying to migrate an Axis 1.2 and Castor implementation to Axis 2.1.2 and 
XML Beans.  I'm afraid
I failed at the first hurdle - WSDL2Java is failing to resolve the
namespaces in my xsd files (xmlbean scomp has no problem).

I have a zip example.

XmlBeans scomp gives correct expected results with the same schema.

I get the following output from runwsdl2java.bat:

C:\axis2devtest\wsdl>C:\axis2-1.2/bin/WSDL2Java -uri UserPortType.wsdl -p 
com.db.ict.tc.service.qte.service.user -d xmlbeans -s -ss
-sd -ssi -o ../build/service
Using AXIS2_HOME:   C:\axis2-1.2
Using JAVA_HOME:    C:\program files\Java\jdk1.5.0_08
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.Invo
cationTargetException
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
        at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:103)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209)
        ... 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:585)
        at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:92)
        ... 3 more
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: 
src-resolve: type '[EMAIL PROTECTED]' not found.
        at 
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:310)
        ... 8 more
Caused by: org.apache.xmlbeans.XmlException: error: src-resolve: type '[EMAIL 
PROTECTED]' not found.
        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:585)
        at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
        at 
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:174)

Any help would be much appreciated as this is a showstopper for this task.

Gary

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to