You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/08/06 16:06:01 UTC

[jira] Updated: (AXIS2-3054) WSDL2Java fails to resolve elements in xsd with imported namespaces

     [ https://issues.apache.org/jira/browse/AXIS2-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-3054:
------------------------------------

    Fix Version/s:     (was: 1.2)

> 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
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: axis2devtest.zip
>
>
> 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 'UserException@USER' not found.
>         at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:310)
>         ... 8 more
> Caused by: org.apache.xmlbeans.XmlException: error: src-resolve: type 'UserException@USER' 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org