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