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 "Gary Parker (JIRA)" <ji...@apache.org> on 2007/08/02 10:16:52 UTC

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

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 '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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-3054.
-------------------------------------

    Resolution: Invalid

Please specify the imports properly. you are missing "xsd:" 

			<xsd:import namespace="USER" schemaLocation="xsd/user.xsd"/>
			<xsd:import namespace="STATICUSER_COMMON" schemaLocation="xsd/xstaticuser_common.xsd"/>
			<xsd:import namespace="QTEEXCEPTION" schemaLocation="xsd/qteexception.xsd"/>

Please get rid of the policy statements or update to the latest namespaces that we support in Axis2.

thanks,
dims

> 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


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

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3054:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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
>             Fix For: 1.2
>
>         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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Gary Parker (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517173 ] 

Gary Parker commented on AXIS2-3054:
------------------------------------

I already mailed Dims regarding this due to problems with Jira, but I'm sure he's a busy man so I'm raising it here now.

> 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 '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