Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Resolved
-
1.6.2
-
None
-
None
-
Windows XP, Axis2 Version - 1.6.1, Java Version - 1.7
Description
We are using the WSDL2Java tool to generate the client side stubs but we are encountering the SchemaCompilationException. Following is the stack trace of the exception that we are getting
C:\Program Files\axis2-1.6.2\bin>wsdl2java -uri I:\javaWorkspace\PostalAddressClient\WebContent\wsdl\CBS-CustAddress-I-Concrete_HTTP.wsdl
Using AXIS2_HOME: C:\Program Files\axis2-1.6.2
Using JAVA_HOME: C:\Program Files\Java\jdk1.7.0_25
Retrieving document at 'I:\javaWorkspace\PostalAddressClient\WebContent\wsdl\CBS-CustAddress-I-Concrete_HTTP.wsdl'.
Retrieving schema at '../Schemas/XML/CBS-CustAddress-I-ServiceEnvelope.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/wsdl/CBS-CustAddress-I-Concrete_HTTP.wsdl'.
Retrieving schema at '../../../../Schemas/XML/CommonHeader.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I-ServiceEnvelope.xsd'.
Retrieving schema at 'CBS-CustAddress-I.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I-ServiceEnvelope.xsd'.
Retrieving schema at '../../../../Schemas/XML/CommonAggregates.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I.xsd'.
Retrieving schema at 'CommonElements.xsd', relative to 'file:/I:/javaWorkspace/Schemas/XML/CommonAggregates.xsd'.
Retrieving schema at '../../../../Schemas/XML/CommonElements.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I.xsd'.
Retrieving schema at '../../../../Schemas/XML/CommonBody.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I-ServiceEnvelope.xsd'.
Retrieving schema at 'CommonHeader.xsd', relative to 'file:/I:/javaWorkspace/Schemas/XML/CommonBody.xsd'.
Retrieving schema at 'CommonElements.xsd', relative to 'file:/I:/javaWorkspace/Schemas/XML/CommonBody.xsd'.
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
log4j:WARN Please initialize the log4j system properly.
C:\Program Files\axis2-1.6.2\bin>wsdl2java -uri I:\javaWorkspace\PostalAddressClient\WebContent\wsdl\CBS-CustAddress-I-Concrete_HTTP.wsdl
Using AXIS2_HOME: C:\Program Files\axis2-1.6.2
Using JAVA_HOME: C:\Program Files\Java\jdk1.7.0_25
Retrieving document at 'I:\javaWorkspace\PostalAddressClient\WebContent\wsdl\CBS-CustAddress-I-Concrete_HTTP.wsdl'.
Retrieving schema at '../Schemas/XML/CBS-CustAddress-I-ServiceEnvelope.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/wsdl/CBS-CustAddress-I-Concrete_HTTP.wsdl'.
Retrieving schema at '../../../../Schemas/XML/CommonHeader.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I-ServiceEnvelope.xsd'.
Retrieving schema at 'CBS-CustAddress-I.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I-ServiceEnvelope.xsd'.
Retrieving schema at '../../../../Schemas/XML/CommonAggregates.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I.xsd'.
Retrieving schema at 'CommonElements.xsd', relative to 'file:/I:/javaWorkspace/Schemas/XML/CommonAggregates.xsd'.
Retrieving schema at '../../../../Schemas/XML/CommonElements.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I.xsd'.
Retrieving schema at '../../../../Schemas/XML/CommonBody.xsd', relative to 'file:/I:/javaWorkspace/PostalAddressClient/WebContent/Schemas/XML/CBS-CustAddress-I-ServiceEnvelope.xsd'.
Retrieving schema at 'CommonHeader.xsd', relative to 'file:/I:/javaWorkspace/Schemas/XML/CommonBody.xsd'.
Retrieving schema at 'CommonElements.xsd', relative to 'file:/I:/javaWorkspace/Schemas/XML/CommonBody.xsd'.
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
log4j:WARN Please initialize the log4j system properly.
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(CodeGenerationEngine.java:293)
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.InvocationTargetException
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:246)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
... 3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException: The referenced element '
RqDetail' was not found!
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:753)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:604)
at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:2069)
at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1988)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1156)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1092)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:1006)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:772)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:604)
at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:2069)
at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1952)
at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1156)
at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1092)
at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:1006)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:645)
at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:615)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:423)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:407)
at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:292)
at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:102)
... 8 more