WLS 10.3: weblogic.wsee.tools.WsBuildException: com.bea.xml.XmlException: error: sch-props-correct.2: Duplicate global type! (Doc ID 1201283.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

The below issue was noticed when using clientgen task for creating client stubs.
Imported WSDL has reference to two xsd's (xsd1 & xsd2)

However xsd2 had reference to xsd1.This duplication causes the clientgen build to fail.

C:\build.xml:9: weblogic.wsee.tools.WsBuildException: com.bea.xml.XmlException: https://xat-www.XYZ.com/soap/customerinfo/1/schema/types_customerinfo_pershing_doc.xsd:0: error: sch-props-correct.2: Duplicate global type: ErrorMessages_List@urn:pershing.customerinfo.types (Original global type found in file: URI_SHA_1_D32911B62146C56C21EDF6B108298EDD10B2A6FB/types_customerinfo_pershing_doc.xsd)
at weblogic.wsee.tools.anttasks.ClientGenTask.execute(ClientGenTask.java:374)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)

Changes

N/A.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms