On Tue, Jul 29, 2008 at 12:51 AM, Ridwan Tan (ridtan) <[EMAIL PROTECTED]>wrote:
> Hello, > > I have run across into issues where wsdl2java fails to generate java codes > from Exchange Web Service WSDL file on linux machine. The error reported > is: > > Retrieving schema at 'messages.xsd', relative to '* > file:/tmp/axis2-1.3/bin/*'. > Retrieving schema at 'types.xsd', relative to '* > file:/tmp/axis2-1.3/bin/messages*. > xsd'. > [INFO] Resolving schema with publicId [* > http://schemas.microsoft.com/exchange/services/2006/messages*<http://schemas.microsoft.com/exchange/services/2006/messages>] > and systemId [messages.xsd] > > [INFO] Resolving schema with publicId [* > http://schemas.microsoft.com/exchange/services/2006/types*<http://schemas.microsoft.com/exchange/services/2006/types>] > and systemId [types.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(CodeGenerationEngine.java:265) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > Caused by: java.lang.RuntimeException: > java.lang.reflect.InvocationTargetException > at > org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:114) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:218) > ... 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:103) > ... 3 more > Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: > project://local/types.xsd:51:1: error: cvc-enumeration-valid: string value > 'none' is no > > t a valid enumeration value for type of processContents attribute in > xs:wildcard > at > org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:319) > ... 8 more > Caused by: org.apache.xmlbeans.XmlException: > project://local/types.xsd:51:1: error: cvc-enumeration-valid: string value > 'none' is not a valid enumeration value > > for type of processContents attribute in xs:wildcard > 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:183) > ... 8 more > > I am using the same binary and wsdl file on windows and that works fine. I > have verified something obvious such as, windows line feed, correct import > path, etc. I saw various mailing list archive, and it looks like a genuine > issue in xmlbeans which has been fixed in 2.2. I have tried to update > xmlbeans to 2.4 version, but the issue persists. I have also verified the > class path on my linux environtment to ensure that we don't errorneously > pick up older version of any library. > try to compile this wsdl file using the XmlBeans Scheama compiler tool in linux platform. thanks, Amila. > Please advise. > > Best regards, > > Ridwan > -- Amila Suriarachchi, WSO2 Inc.
