Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1BDC0965D for ; Wed, 19 Oct 2011 12:54:33 +0000 (UTC) Received: (qmail 15267 invoked by uid 500); 19 Oct 2011 12:54:32 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 14924 invoked by uid 500); 19 Oct 2011 12:54:32 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 14915 invoked by uid 99); 19 Oct 2011 12:54:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 12:54:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 12:54:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AEF4631097B for ; Wed, 19 Oct 2011 12:54:10 +0000 (UTC) Date: Wed, 19 Oct 2011 12:54:10 +0000 (UTC) From: "Sagara Gunathunga (Updated) (JIRA)" To: java-dev@axis.apache.org Message-ID: <698926979.10275.1319028850718.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1629014167.3469.1309948697383.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AXIS2-5088) Getting Exception while generating classes for a wsdl with xmlbeans MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sagara Gunathunga updated AXIS2-5088: -------------------------------------- Priority: Major (was: Blocker) > Getting Exception while generating classes for a wsdl with xmlbeans > ------------------------------------------------------------------- > > Key: AXIS2-5088 > URL: https://issues.apache.org/jira/browse/AXIS2-5088 > Project: Axis2 > Issue Type: Bug > Components: codegen > Affects Versions: 1.6.0 > Reporter: santosh > Labels: xmlbean > > I am trying to generate classes for a wsdl with xmlbeans options. I am getting this error. > > >> Retrieving document at 'Sugar\Sugar_V1_2.xml'. > > >> Retrieving schema at 'http://schemas.xmlsoap.org/soap/encoding/', > > relative to 'file:/D:/Temp/axis2/bin/Sugar/Sugar_V1_2.xml'. > > >> Retrieving schema at 'http://schemas.xmlsoap.org/soap/encoding/', > > relative to 'file:/D:/Temp/axis2/bin/Sugar/Sugar_V1_2.xml'. > > >> [INFO] Resolving schema with publicId [ > > http://schemas.xmlsoap.org/soap/encoding/] and systemId [ > > http://schemas.xmlsoap.org/soap/encoding/] > > >> 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:271) > > >> 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:126) > > >> at > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) > > >> ... 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:597) > > >> at > > org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:115) > > >> ... 3 more > > >> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: > > http://schemas.xmlsoap.org/soap/encoding/:48:1: error: > > sch-props-correct.2: Duplicate global type: Array@ > > http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in > > file: null) > > >> at > > org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325) > > >> ... 8 more > > >> Caused by: org.apache.xmlbeans.XmlException: > > http://schemas.xmlsoap.org/soap/encoding/:48:1: error: > > sch-props-correct.2: Duplicate global type: Array@ > > http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in > > file: null) > > >> 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:597) > > >> at > > org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667) > > >> at > > org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:189) > > >> ... 8 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org