Hello, I am using wsdl2java.sh from axis2-1.1 RC2 to generate the java classes from a wsdl file that includes a couple of schema files. The schema files are part of the OTA specification.
Now I am trying with the xmlbeans data binding. When I run wsdl2java without any options I get the following error: [EMAIL PROTECTED]:~/src/MiraiOTA/axis_2/OTA_Cancel> /usr/local/axis2-1.1-RC2/bin/wsdl2java.sh -uri /home/jmanuel/src/MiraiOTA/axis_2/OTA_HotelAvail/OTA_HotelAvail.wsdl -o /home/jmanuel/src/MiraiOTA/axis_2/OTA_HotelAvail/axis2/ -d xmlbeans Using AXIS2_HOME: /usr/local/axis2-1.1-RC2 Using JAVA_HOME: /usr/local/jdk1.5.0_06 Retrieving schema at 'xsd/FS_OTA_HotelAvailRQ.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_HotelAvail/'. Retrieving schema at 'xsd/FS_OTA_HotelAvailRS.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_HotelAvail/'. Nov 2, 2006 7:06:13 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [http://www.opentravel.org/OTA/2003/05] and systemId [xsd/FS_OTA_HotelAvailRS.xsd] Nov 2, 2006 7:06:13 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [http://www.opentravel.org/OTA/2003/05] and systemId [xsd/FS_OTA_HotelAvailRQ.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: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.InvocationTargetException at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:92) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.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(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:82) ... 3 more Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: /usr/local/axis2-1.1-RC2/xsd/FS_OTA_HotelAvailRQ.xsd:89:1: error: sch-props-correct.2: Duplicate global type: [EMAIL PROTECTED]://www.opentravel.org/OTA/2003/05 (Original global type found in file: xsd/FS_OTA_HotelAvailRS.xsd) at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:248) ... 8 more Caused by: org.apache.xmlbeans.XmlException: /usr/local/axis2-1.1-RC2/xsd/FS_OTA_HotelAvailRQ.xsd:89:1: error: sch-props-correct.2: Duplicate global type: [EMAIL PROTECTED]://www.opentravel.org/OTA/2003/05 (Original global type found in file: xsd/FS_OTA_HotelAvailRS.xsd) 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:166) ... 8 more The same wsdl and schema files worked fine in axis1. Any help will be greatly appreciated. Regards, Manuel Valladares --------------------------------------------- - Jose Manuel Valladares Pernas - [EMAIL PROTECTED] - [EMAIL PROTECTED] --------------------------------------------- ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. http://new.mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
