[ https://issues.apache.org/jira/browse/AXIS2-5595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
robert lazarski closed AXIS2-5595.
----------------------------------
Resolution: Resolved
The latest 1.7.7 release will no longer show the error message "The referenced element ...
was not found"."
Testing similar issues as described in AXIS2-5595 indicates you will now get the WARN message:
No schemaLocation for ... compilation may fail .
> 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: CBS-CustAddress-I-Concrete_HTTP.wsdl, 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 was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
|