My Oracle Support Banner

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 OCTOBER 13, 2020

Applies to:

Oracle WebLogic Server - Version 10.3 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.

\path\to\build.xml:9: weblogic.wsee.tools.WsBuildException: com.bea.xml.XmlException: https://<hostname.domain>/soap/ServiceInfo/1/schema/types_ServiceInfo_doc.xsd:0: error: sch-props-correct.2: Duplicate global type: ErrorMessages_List@urn:pershing.ServiceInfo.types (Original global type found in file: URI_SHA_1_<ENCRYPTED_VALUE>/types_ServiceInfo_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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.