When I have WS-Addressing schema imported in my wsdl, I get this error
running 

WSDL2Java 
-uri C:\gpatwa\workspace\BPELAxisAsyncTest\tmp\HelloWorldAsync.wsdl
-a on
-ss 
-sd
-d xmlbeans
-o C:\gpatwa\workspace\BPELAxisAsyncTest\tmp
-p com.liquid.helloworld

Both xmlbeans and JAxme throws error.


Retrieving schema at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd',
relative to 'file:/C:/gpatwa/workspace/BPELAxisAsyncTest/tmp/'.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error:
cvc-complex-type.2.4b: Element not allowed:
[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema in element
[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
        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: org.apache.xmlbeans.XmlException:
error: cvc-complex-type.2.4b: Element not allowed:
[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema in element
[EMAIL PROTECTED]://www.w3.org/2001/XMLSchema
        at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:140)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
        ... 2 more
Caused by: org.apache.xmlbeans.XmlException: error: cvc-complex-type.2.4b:
Element not allowed: [EMAIL PROTECTED]://www.w3.org/2001/XMLSchema in element
[EMAIL PROTECTED]://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:117)
        ... 3 more

--
View this message in context: 
http://www.nabble.com/Axis2-1.0-RC1-WSDL2Java-error-when-import-WS-Addressing-t1471363.html#a3978572
Sent from the Axis - User forum at Nabble.com.

Reply via email to