WSDL2C.bat : -d adb option gives "org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:java.lang.reflect.InvocationTargetException" ----------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: AXIS2C-1072 URL: https://issues.apache.org/jira/browse/AXIS2C-1072 Project: Axis2-C Issue Type: Bug Components: code generation Affects Versions: 1.3.0 Environment: Windows XP Reporter: Vishal Khutale Hi, I am using axis2/c 1.3.0. SNAPSHOT ------------------- distribution-SNAPSHOT-bin.zip 15-Mar-2008 02:44 19M I used options to generate client stub: WSDL2C.bat -uri RasDiscovery.wsdl -d adb -u I am getting following error: =========================================== Retrieving document at 'RasDiscovery.wsdl'. 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:278) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31) 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:231) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50) ... 3 more Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find type {http://schemas.xmlsoap.org/soap/encoding/}Array from the parent sche ma http://localhost:8080/axis/services/RasDiscovery at org.apache.axis2.schema.SchemaCompiler.copyMetaInfoHierarchy(SchemaCompiler.java:1243) at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1205) at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1100) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1044) at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:964) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:878) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:540) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:500) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1938) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1821) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1028) at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:927) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:881) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:540) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:511) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:318) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:228) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:80) =========================================== WSDL File(RasDiscovery.wsdl): =========================================== <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://localhost:8080/axis/services/RasDiscovery" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/services/RasDiscovery" xmlns:intf="http://localhost:8080/axis/services/RasDiscovery" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="urn:service.ras.analyst.aion.cleverpath.ca.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!--WSDL created by Apache Axis version: 1.2 Built on May 03, 2005 (02:20:24 EDT)--> <wsdl:types> <schema targetNamespace="http://localhost:8080/axis/services/RasDiscovery" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="urn:service.ras.analyst.aion.cleverpath.ca.com"/> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ArrayOf_xsd_string"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/> </restriction> </complexContent> </complexType> </schema> <schema targetNamespace="urn:service.ras.analyst.aion.cleverpath.ca.com" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://localhost:8080/axis/services/RasDiscovery"/> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="RulebaseDetails"> <sequence> <element name="inputDataTypes" nillable="true" type="impl:ArrayOf_xsd_string"/> <element name="inputTerms" nillable="true" type="impl:ArrayOf_xsd_string"/> <element name="outputDataTypes" nillable="true" type="impl:ArrayOf_xsd_string"/> <element name="outputTerms" nillable="true" type="impl:ArrayOf_xsd_string"/> </sequence> </complexType> </schema> </wsdl:types> <wsdl:message name="getDeployedServiceListRequest"> </wsdl:message> <wsdl:message name="getDeployedServiceListResponse"> <wsdl:part name="getDeployedServiceListReturn" type="impl:ArrayOf_xsd_string"/> </wsdl:message> <wsdl:message name="getRulebaseDetailsRequest"> <wsdl:part name="in0" type="xsd:string"/> </wsdl:message> <wsdl:message name="getRulebaseDetailsResponse"> <wsdl:part name="getRulebaseDetailsReturn" type="tns1:RulebaseDetails"/> </wsdl:message> <wsdl:portType name="Discovery"> <wsdl:operation name="getDeployedServiceList"> <wsdl:input message="impl:getDeployedServiceListRequest" name="getDeployedServiceListRequest"/> <wsdl:output message="impl:getDeployedServiceListResponse" name="getDeployedServiceListResponse"/> </wsdl:operation> <wsdl:operation name="getRulebaseDetails" parameterOrder="in0"> <wsdl:input message="impl:getRulebaseDetailsRequest" name="getRulebaseDetailsRequest"/> <wsdl:output message="impl:getRulebaseDetailsResponse" name="getRulebaseDetailsResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="RasDiscoverySoapBinding" type="impl:Discovery"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getDeployedServiceList"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getDeployedServiceListRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://service.ras.analyst.aion.cleverpath.ca.com" use="encoded"/> </wsdl:input> <wsdl:output name="getDeployedServiceListResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/RasDiscovery" use="encoded"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getRulebaseDetails"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getRulebaseDetailsRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://service.ras.analyst.aion.cleverpath.ca.com" use="encoded"/> </wsdl:input> <wsdl:output name="getRulebaseDetailsResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/axis/services/RasDiscovery" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="DiscoveryService"> <wsdl:port binding="impl:RasDiscoverySoapBinding" name="RasDiscovery"> <wsdlsoap:address location="http://localhost:8080/axis/services/RasDiscovery"/> </wsdl:port> </wsdl:service> </wsdl:definitions> =========================================== Thanks Vishal -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]