axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1510) Included schema filenames impact wsdl2java with xmlbeans binding
Date Fri, 27 Oct 2006 01:35:17 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1510?page=comments#action_12445061 ] 
            
Davanum Srinivas commented on AXIS2-1510:
-----------------------------------------

There are several problems with the schemas and how it is used in the wsdl. Please use something
like xmlspy to validate your wsdl and schemas.

thanks,
dims

> Included schema filenames impact wsdl2java with xmlbeans binding
> ----------------------------------------------------------------
>
>                 Key: AXIS2-1510
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1510
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>            Reporter: Mariusz Woloncewicz
>         Attachments: subscribe.xsd, TestServices.wsdl, TestServicesFAIL.wsdl, unsubscribe.xsd
>
>
> Types declaration in wsdl:
> <xs:include schemaLocation="subscribe.xsd"/>
> <xs:include schemaLocation="unsubscribe.xsd"/>
> <xs:element name="subscribe" type="tns:SubscribeType"/>
> <xs:element name="unsubscribe" type="tns:UnsubscribeType"/>		
> Output generated by wsdl2java.bat -uri TestServices.wsdl -d xmlbeans :
> Retrieving schema at 'subscribe.xsd', relative to 'file:/C:/JIRA/'.
> Retrieving schema at 'unsubscribe.xsd', relative to 'file:/C:/JIRA/'.
> 2006-10-26 10:35:52 org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityR
> esolver resolveEntity
> INFO: Resolving schema with publicId [null] and systemId [subscribe.xsd]
> 2006-10-26 10:35:52 org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityR
> esolver resolveEntity
> INFO: Resolving schema with publicId [null] and systemId [unsubscribe.xsd]
> 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(CodeGener
> ationEngine.java:224)
>         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.InvocationTargetExcepti
> on
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
> eansExtension.java:92)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:177)
>         ... 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(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
> eansExtension.java:82)
>         ... 3 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error:
> src-resolve: type 'SubscribeType@ws/request/beans' not found.
>         at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
> nerationUtility.java:241)
>         ... 8 more
> Caused by: org.apache.xmlbeans.XmlException: error: src-resolve: type 'Subscribe
> Type@ws/request/beans' not found.
>         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sche
> maTypeSystemCompiler.java:225)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.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(CodeGe
> nerationUtility.java:167)
>         ... 8 more
> Current workaround is renaming unsubscribe.xsd file (for instance, to  "unsubscription.xsd").


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message