Axis2 XMLBean Duplicate global element Error

Joined
Mar 29, 2011
Messages
2
Reaction score
0
I am unable to create XMLBean Client of a web service. Whereas I am able to create ADB client of the same web service. I get following exception when attempting to create XMLBean client:

------------------------------------------------------------------------------------------------------------------
C:\axis2-1.5.4\bin>wsdl2java -uri http://localhost/PSIGW/PeopleSoftServiceLis
teningConnector/SAD_ADMISSIONS.1.wsdl -d xmlbeans -s
Using AXIS2_HOME: C:\axis2-1.5.4
Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_22
Retrieving document at 'http://localhost/PSIGW/PeopleSoftServiceListeningConn
ector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_CREATEAPPL_REQ.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_CREATEAPPL_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_CREATEAPPL_RESP.V1.xsd'.
Retrieving schema at 'SCC_ENTITY_APPLICATION.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_CREATEAPPL_RESP.V1.xsd'.
Retrieving schema at 'SAD_FAULT_RESP.V1.xsd', relative to 'http://localhost/P
SIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_GETAPPL_REQ.V1.xsd', relative to 'http://localhost/
PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_GETAPPL_RESP.V1.xsd', relative to 'http://localhost
/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_GETAPPL_RESP.V1.xsd'.
Retrieving schema at 'SCC_ENTITY_APPLICATION.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_GETAPPL_RESP.V1.xsd'.
Retrieving schema at 'SAD_GETAPPLS_REQ.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_GETAPPLS_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_GETAPPLS_RESP.V1.xsd'.
Retrieving schema at 'SAD_GETATTACH_REQ.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_GETATTACH_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_ADM_APPL_ATCH.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_GETATTACH_RESP.V1.xsd'.
Retrieving schema at 'SAD_SAVEAPPL_REQ.V1.xsd', relative to 'http://localhost
/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_SAVEAPPL_REQ.V1.xsd'.
Retrieving schema at 'SCC_ENTITY_APPLICATION.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_SAVEAPPL_REQ.V1.xsd'.
Retrieving schema at 'SAD_SAVEAPPL_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SAD_SUBMITAPPL_REQ.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
Retrieving schema at 'SCC_ENTITY_CONSTITUENT.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_SUBMITAPPL_REQ.V1.xsd'.
Retrieving schema at 'SCC_ENTITY_APPLICATION.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_SUBMITAPPL_REQ.V1.xsd'.
Retrieving schema at 'SAD_SUBMITAPPL_RESP.V1.xsd', relative to 'http://localhost/PSIGW/PeopleSoftServiceListeningConnector/SAD_ADMISSIONS.1.wsdl'.
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_CREATEAPPL_REQ.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_CREATEAPPL_RESP.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_FAULT_RESP.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_GETAPPL_REQ.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_GETAPPL_RESP.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_GETAPPLS_REQ.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_GETAPPLS_RESP.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_GETATTACH_REQ.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_GETATTACH_RESP.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_SAVEAPPL_REQ.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_SAVEAPPL_RESP.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_SUBMITAPPL_REQ.V1.xsd]
[INFO] Resolving schema with publicId [http://xmlns.oracle.com/Enterprise/HCM/se
rvices] and systemId [SAD_SUBMITAPPL_RESP.V1.xsd]
[INFO] Resolving schema with publicId [null] and systemId [SCC_ENTITY_CONSTITUEN
T.V1.xsd]
[INFO] Resolving schema with publicId [null] and systemId [SCC_ENTITY_APPLICATIO
N.V1.xsd]
[INFO] Resolving schema with publicId [null] and systemId [SCC_ENTITY_ADM_APPL_A
TCH.V1.xsd]
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:271)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti
on
at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
eansExtension.java:126)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
eansExtension.java:115)
... 3 more
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: C:\axis
2-1.5.4\bin\SAD_SUBMITAPPL_RESP.V1.xsd:2:1: error: sch-props-correct.2: Duplicat
e global element: (e-mail address removed)/Enterprise/HCM/ser
vices (Original global element found in file: SAD_SAVEAPPL_RESP.V1.xsd)
at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
nerationUtility.java:325)
... 8 more
Caused by: org.apache.xmlbeans.XmlException: C:\axis2-1.5.4\bin\SAD_SUBMITAPPL_R
ESP.V1.xsd:2:1: error: sch-props-correct.2: Duplicate global element: SAD_SUBMIT
(e-mail address removed)/Enterprise/HCM/services (Original global eleme
nt found in file: SAD_SAVEAPPL_RESP.V1.xsd)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sche
maTypeSystemCompiler.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
nerationUtility.java:189)
... 8 more
C:\axis2-1.5.4\bin>
------------------------------------------------------------------------------------------------------------------

Kindly suggest how can I resolve this issue.
Regards
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top