Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 37322 invoked from network); 13 Jul 2007 01:17:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2007 01:17:26 -0000 Received: (qmail 3719 invoked by uid 500); 13 Jul 2007 01:17:28 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 3706 invoked by uid 500); 13 Jul 2007 01:17:28 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 3695 invoked by uid 99); 13 Jul 2007 01:17:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 18:17:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 18:17:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A673571420C for ; Thu, 12 Jul 2007 18:17:04 -0700 (PDT) Message-ID: <7294002.1184289424673.JavaMail.jira@brutus> Date: Thu, 12 Jul 2007 18:17:04 -0700 (PDT) From: "benson margulies (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-781) Duplicate type error from Aegis on code that worked fine with XFire 1.2.5 In-Reply-To: <16224847.1184204224614.JavaMail.jira@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 [ https://issues.apache.org/jira/browse/CXF-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] benson margulies updated CXF-781: --------------------------------- Affects Version/s: 2.0.1 > Duplicate type error from Aegis on code that worked fine with XFire 1.2.5 > ------------------------------------------------------------------------- > > Key: CXF-781 > URL: https://issues.apache.org/jira/browse/CXF-781 > Project: CXF > Issue Type: Bug > Affects Versions: 2.0, 2.0.1 > Reporter: benson margulies > Attachments: DuplicateArrayReturnItem.aegis.xml, DuplicateArrayReturnItem.java, DuplicateArrayService.java, DuplicateArrayServiceBean.java, DuplicateArrayTest.java > > > I'd pick 'aegis' as a component if it appeared on the list. > The only place in my universe where 'ArrayOfNameIndexLookupResult' can arise is in the service interface itself ... > @WebMethod() > public abstract NameIndexLookupResult[] lookup(String indexid, > @WebParam(targetNamespace="urn:com.basistech.rnm.index")NameIndexQuery query) throws NameIndexException; > I'm wondering if I have a namespace inconsistency between the interface and the impl. > The interface is marked up with .. > @WebService(name="NameIndexService", targetNamespace="urn:com.basistech.rnm.index.ws") > while the impl class looks like ... > @WebService(serviceName = "NameIndexService", endpointInterface = "com.basistech.rnm.index.ws.NameIndexService") > I tried adding the targetNamespace to the implementation class, but that had no effect. > Jul 11, 2007 9:28:39 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass > INFO: Creating Service {http://impl.ws.index.rnm.basistech.com/}NameIndexService from class com.basistech.rnm.index.ws.impl.NameIndexServiceImpl > Exception in thread "main" java.lang.RuntimeException: Schema for namespace 'urn:com.basistech.rnm.index' already contains type 'ArrayOfNameIndexLookupResult > at org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:229) > at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:139) > at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:315) > at org.apache.cxf.aegis.databinding.AegisDatabinding.createSchemas(AegisDatabinding.java:291) > at org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDatabinding.java:162) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:220) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:248) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:136) > at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:83) > at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:89) > at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:142) > at com.basistech.rnm.index.ws.impl.StandaloneServiceStarter.start(StandaloneServiceStarter.java:76) > at com.basistech.rnm.index.ws.impl.StandaloneServiceStarter.main(StandaloneServiceStarter.java:116) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.