Return-Path: X-Original-To: apmail-tuscany-dev-archive@www.apache.org Delivered-To: apmail-tuscany-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 6BAA39EAA for ; Fri, 23 Mar 2012 13:40:01 +0000 (UTC) Received: (qmail 73878 invoked by uid 500); 23 Mar 2012 13:40:01 -0000 Delivered-To: apmail-tuscany-dev-archive@tuscany.apache.org Received: (qmail 73830 invoked by uid 500); 23 Mar 2012 13:40:01 -0000 Mailing-List: contact dev-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tuscany.apache.org Delivered-To: mailing list dev@tuscany.apache.org Received: (qmail 73817 invoked by uid 99); 23 Mar 2012 13:40:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 13:40:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Fri, 23 Mar 2012 13:39:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 824FA3423CD for ; Fri, 23 Mar 2012 13:39:34 +0000 (UTC) Date: Fri, 23 Mar 2012 13:39:34 +0000 (UTC) From: "Kaushik Mukherjee (Updated) (JIRA)" To: dev@tuscany.apache.org Message-ID: <1354994460.7862.1332509974544.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1467063576.2940.1332434542232.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (TUSCANY-4035) Application could possibly fail to start if multiple threads are loading the same schema MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kaushik Mukherjee updated TUSCANY-4035: --------------------------------------- Attachment: (was: TUSCANY-4035.patch) > Application could possibly fail to start if multiple threads are loading the same schema > ---------------------------------------------------------------------------------------- > > Key: TUSCANY-4035 > URL: https://issues.apache.org/jira/browse/TUSCANY-4035 > Project: Tuscany > Issue Type: Bug > Reporter: Kaushik Mukherjee > > This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers. > Starting multiple applications simultaneously can lead to an > exception such as: > org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace > at > org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223) > at > org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202) > at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424) > at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347) > at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379) > at > org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204) > at > org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240) > at > org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114) -- 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