[
https://issues.apache.org/jira/browse/AXIS2-4170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070448#comment-13070448
]
Sagara Gunathunga commented on AXIS2-4170:
-------------------------------------------
I have reviewed your patch and tested your service/client too.
As a miner issue I found it's not possible to deploy SendSmsService.aar in
Axis2 Simple sever but possible to deploy SendSmsService as a explode AAR
service. In SendSmsService.aar case I'm getting following exception.
[ERROR] Woden[Error],0:0,WSDL521,Could not parse an inline schema in the WSDL
at URL
"jar:file://file:/home/sagara/dev/code/apache/axis2/devs/patch/modules/distribution/target/axis2-1.7.0-SNAPSHOT/repository/services/SendSmsService.aar!/META-INF/SendSmsService.wsdl".,java.lang.RuntimeException:org.apache.ws.commons.schema.XmlSchemaException:
JAR entry
jar:file:///home/sagara/dev/code/apache/axis2/devs/patch/modules/distribution/target/axis2-1.7.0-SNAPSHOT/repository/services/SendSmsService.aar!/jar:file://file:/home/sagara/dev/code/apache/axis2/devs/patch/modules/distribution/target/axis2-1.7.0-SNAPSHOT/repository/services/SendSmsService.aar!/META-INF/parlayx_sms_types_2_2.xsd
not found in
/home/sagara/dev/code/apache/axis2/devs/patch/modules/distribution/target/axis2-1.7.0-SNAPSHOT/repository/services/SendSmsService.aar
[ERROR] Woden[Error],0:0,WSDL521,Could not parse an inline schema in the WSDL
at URL
"jar:file://file:/home/sagara/dev/code/apache/axis2/devs/patch/modules/distribution/target/axis2-1.7.0-SNAPSHOT/repository/services/SendSmsService.aar!/META-INF/SendSmsService.wsdl".,java.lang.RuntimeException:org.apache.ws.commons.schema.XmlSchemaException:
JAR entry
jar:file:///home/sagara/dev/code/apache/axis2/devs/patch/modules/distribution/target/axis2-1.7.0-SNAPSHOT/repository/services/SendSmsService.aar!/jar:file://file:/home/sagara/dev/code/apache/axis2/devs/patch/modules/distribution/target/axis2-1.7.0-SNAPSHOT/repository/services/SendSmsService.aar!/META-INF/parlayx_common_types_2_1.xsd
not found in
/home/sagara/dev/code/apache/axis2/devs/patch/modules/distribution/target/axis2-1.7.0-SNAPSHOT/repository/services/SendSmsService.aar
But this issue is related to Woden not Axis2 or this particular issue so I have
applied your patch and will resolve this issue. If you have time please
investigate above issue related to Woden and create a issue there.
> WSDL2JAVA for WSDL2.0 has CodeGenerationException/NullPointerException
> -----------------------------------------------------------------------
>
> Key: AXIS2-4170
> URL: https://issues.apache.org/jira/browse/AXIS2-4170
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4.1
> Environment: Win XP
> Reporter: Vincent Dou
> Assignee: Sagara Gunathunga
> Fix For: 1.7.0
>
> Attachments: WSDL20ToAxisServiceBuilder.java,
> axis2-4170_generated_parlayx.zip, checkin.txt, generated_parlayx.zip,
> kernel.patch, wsdl20.zip
>
>
> I converted the WSDL1.1 to WSDL2.0 by using WODEN.
> Then using Axis2 WSDL2Java , there are exceptions;
> wsdl2java -wv 2.0 -or -g -ss -uri parlayx_sms_send_service_2_2.wsdl2
> Woden[Warning],0:0,Description-1001,The targetNamespace
> 'http://www.csapi.org/ws
> dl/parlayx/sms/send/v2_2/service' is not dereferencable.
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : Error parsing WSDL
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
> ionEngine.java:153)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
> ce(WSDL20ToAxisServiceBuilder.java:276)
> at
> org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.populateA
> llServices(WSDL20ToAllAxisServicesBuilder.java:90)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
> ionEngine.java:105)
> ... 2 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateOpera
> tions(WSDL20ToAxisServiceBuilder.java:1088)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processInterf
> ace(WSDL20ToAxisServiceBuilder.java:957)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processServic
> e(WSDL20ToAxisServiceBuilder.java:385)
> at
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
> ce(WSDL20ToAxisServiceBuilder.java:273)
> ... 4 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]