IBM Support

XMLSchemaException exception prevents the starting of SCA applications

Troubleshooting


Problem

When you start a business-level application that uses a Service Component Architecture (SCA) composite, an XMLSchemaException exception might occur and prevent the application from starting.

Symptom

When you start the SCA application, it fails with an exception stack trace that resembles the following text:

org.apache.ws.commons.schema.XmlSchemaException:
Schema name conflict in collection.
Namespace:
namespace_URL
    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)

Cause

This problem, which involves a timing issue, might occur in SCA applications that have any of the following conditions:

  • WSDL or XSD definitions are imported from another (shared) contribution.

  • More than one deployable composite is packaged within a single asset Java™ archive (JAR) file. The composites are added to more than one business-level application, but not all if the deployable composites in the single asset are added to a single business-level application.

Resolving The Problem

If you encounter this problem, start the business-level applications separately by completing the following steps:

  1. Start the application server and see which business-level applications fail to fully start.

  2. Stop each business-level application that failed to start (either stopped or partially started).

  3. Start each remaining business-level application, one at a time.

Another fix is to configure the server to start on a single thread.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Deploy (for example: AAT or ANT or EAR\/WAR\/JAR)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.7","Edition":"Feature Pack for SCA","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Deploy (for example: AAT or ANT or EAR\/WAR\/JAR)","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"7.0.0.7","Edition":"Feature Pack for SCA","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
06 June 2019

UID

swg21410810