Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 92694 invoked from network); 27 Oct 2006 01:36:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 01:36:24 -0000 Received: (qmail 23456 invoked by uid 500); 27 Oct 2006 01:36:32 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 23416 invoked by uid 500); 27 Oct 2006 01:36:32 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 23405 invoked by uid 99); 27 Oct 2006 01:36:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 18:36:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 18:36:20 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 106B77142C1 for ; Thu, 26 Oct 2006 18:35:17 -0700 (PDT) Message-ID: <9054535.1161912917058.JavaMail.root@brutus> Date: Thu, 26 Oct 2006 18:35:17 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-1510) Included schema filenames impact wsdl2java with xmlbeans binding In-Reply-To: <26636131.1161854056546.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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: > > > > > 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