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 2006/02/02 05:10:32 UTC
[jira] Resolved: (AXIS2-287) Facet minInclusive causes
RunTimeException
[ http://issues.apache.org/jira/browse/AXIS2-287?page=all ]
Davanum Srinivas resolved AXIS2-287:
------------------------------------
Resolution: Fixed
you have a bad schema. please use some tools to validate your schema first :) you can't have "annotation" inside minInclusive ("<xsd:minInclusive value="1" annotation="pille"/>")
thanks,
dims
> Facet minInclusive causes RunTimeException
> ------------------------------------------
>
> Key: AXIS2-287
> URL: http://issues.apache.org/jira/browse/AXIS2-287
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: Tools
> Versions: 0.92
> Environment: Red Hat 9
> Reporter: Lars Jütten
> Attachments: Xaction60Stateful.wsdl
>
> (1) Trying to compile the WSDL file using:
> ./WSDL2Java.sh -o /tmp/ -p net.t_mobile.wlan.xtc -uri Xaction60Stateful.wsdl
> (2) ... leads to:
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4a: Expected elements 'annotation@http://www.w3.org/2001/XMLSchema simpleType@http://www.w3.org/2001/XMLSchema complexType@http://www.w3.org/2001/XMLSchema unique@http://www.w3.org/2001/XMLSchema key@http://www.w3.org/2001/XMLSchema keyref@http://www.w3.org/2001/XMLSchema' instead of 'minInclusive@http://www.w3.org/2001/XMLSchema' here in element element@http://www.w3.org/2001/XMLSchema
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:104)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4a: Expected elements 'annotation@http://www.w3.org/2001/XMLSchema simpleType@http://www.w3.org/2001/XMLSchema complexType@http://www.w3.org/2001/XMLSchema unique@http://www.w3.org/2001/XMLSchema key@http://www.w3.org/2001/XMLSchema keyref@http://www.w3.org/2001/XMLSchema' instead of 'minInclusive@http://www.w3.org/2001/XMLSchema' here in element element@http://www.w3.org/2001/XMLSchema
> at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:168)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:75)
> ... 2 more
> Caused by: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4a: Expected elements 'annotation@http://www.w3.org/2001/XMLSchema simpleType@http://www.w3.org/2001/XMLSchema complexType@http://www.w3.org/2001/XMLSchema unique@http://www.w3.org/2001/XMLSchema key@http://www.w3.org/2001/XMLSchema keyref@http://www.w3.org/2001/XMLSchema' instead of 'minInclusive@http://www.w3.org/2001/XMLSchema' here in element element@http://www.w3.org/2001/XMLSchema
> 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:665)
> at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:147)
> ... 3 more
--
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