Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 88228 invoked from network); 26 Aug 2006 02:26:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Aug 2006 02:26:48 -0000 Received: (qmail 25151 invoked by uid 500); 26 Aug 2006 02:26:40 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 25137 invoked by uid 500); 26 Aug 2006 02:26:39 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 25126 invoked by uid 99); 26 Aug 2006 02:26:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 19:26:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.179.9.4] (HELO extrgate1.extremenetworks.com) (207.179.9.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 19:26:37 -0700 Received: by extrgate1.extremenetworks.com with Internet Mail Service (5.5.2656.59) id ; Fri, 25 Aug 2006 19:26:17 -0700 Message-ID: <3D3C76D035B1514FAED7119DA18DAAC402CD8238@sc-msexch-13.extremenetworks.com> From: Oliver Grafe To: axis-user@ws.apache.org Subject: [AXIS2] WSDL2Java: SchemaLocation and relative path / circular im ports Date: Fri, 25 Aug 2006 19:26:15 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C6C8B7.01A9C7F2" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_000_01C6C8B7.01A9C7F2 Content-Type: text/plain Hi! I'm having problems to use Axis2 WSDL2Java with some test WSDL and schema files I made, see attached files. Some of the schemas are importing each other, I think that is confusing WSDL2Java. Command for code generation: C:\wsdltest>java org.apache.axis2.wsdl.WSDL2Java -uri ord.wsdl > error.txt 2>&1 error.txt: Retrieving schema at './xsd/ord.xsd', relative to 'file:/C:/wsdltest/'. Retrieving schema at './prod1.xsd', relative to 'file:/C:/wsdltest/xsd/ord.xsd'. Retrieving schema at './prod2.xsd', relative to 'file:/C:/wsdltest/xsd/prod1.xsd'. Retrieving schema at './prod1.xsd', relative to 'file:/C:/wsdltest/xsd/prod2.xsd'. Retrieving schema at './common.xsd', relative to 'file:/C:/wsdltest/xsd/prod2.xsd'. Retrieving schema at './common.xsd', relative to 'file:/C:/wsdltest/xsd/prod1.xsd'. Retrieving schema at './common.xsd', relative to 'file:/C:/wsdltest/xsd/ord.xsd'. Retrieving schema at './prod2.xsd', relative to 'file:/C:/wsdltest/xsd/ord.xsd'. Exception in thread "main" java.lang.StackOverflowError at java.util.ArrayList.get(Unknown Source) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.findResource(Unknown Source) at java.net.URLClassLoader$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(Unknown Source) at java.lang.ClassLoader.getResource(Unknown Source) at java.lang.ClassLoader.getResource(Unknown Source) at java.lang.ClassLoader.getResourceAsStream(Unknown Source) at javax.xml.parsers.SecuritySupport$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at javax.xml.parsers.SecuritySupport.getResourceAsStream(Unknown Source) at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source) at javax.xml.parsers.FactoryFinder.find(Unknown Source) at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.ja va:213) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.ja va:1911) at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1 708) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuil der.java:126) at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:53) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.ja va:255) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.ja va:217) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.ja va:1911) at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1 708) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuil der.java:126) at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:53) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.ja va:255) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.ja va:217) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.ja va:1911) at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1 708) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuil der.java:126) [... last 6 lines repeated over and over] Is this a bug or am I doing something wrong here? BTW, these files are working with Axis 1.4 wsdl2java. And according to XMLSpy my wsdl and schemas are valid, but that doesn't mean anything. Thanks you very much, Oliver ------_=_NextPart_000_01C6C8B7.01A9C7F2 Content-Type: application/octet-stream; name="wsdl_import.tar.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="wsdl_import.tar.gz" H4sICMx16kQAA3dzZGxfaW1wb3J0LnRhcgDtWd1v2zYQ92sH7H8Q9D59ULZUCMmK7WHAgK4NkA7Y Ky0xjgBJ1EQpdv773ZGixCR2bNeRvbY6BLB5um/yfjozjjsbnTxv7kWLBXx64dyP8DOIyBw/Nc18 bw6siER+MPN8oMXMWowf2mzWiobWljXjq5resd1ygt81a1q/IvFNkuNuRDryGT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vi7zrAHpvL8fdwfhF2XpkpELweqHLGHG+K43m9fmUI9Fsa1Oc6iVLqEZN01TeAMLK++PZFcZZOT3 XDTuhlZZv2noSQXWBSNf0M/h6Tt7TU800UQTTTTRm9J/QGcQvwAoAAA= ------_=_NextPart_000_01C6C8B7.01A9C7F2 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org ------_=_NextPart_000_01C6C8B7.01A9C7F2--