axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peppy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5595) WSDL2Java Tool generates the SchemaCompilationException
Date Thu, 25 Jul 2013 02:11:48 GMT
Peppy created AXIS2-5595:
----------------------------

             Summary: WSDL2Java Tool generates the SchemaCompilationException
                 Key: AXIS2-5595
                 URL: https://issues.apache.org/jira/browse/AXIS2-5595
             Project: Axis2
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.6.2
         Environment: Windows XP, Axis2 Version - 1.6.1, Java Version - 1.7
            Reporter: Peppy
         Attachments: XML.zip

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 '{http://schemas.ocbc.com/soa/emf/service/CBS-CustAddress-I}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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message