[
https://issues.apache.org/jira/browse/AXIS2-5136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ping Liu updated AXIS2-5136:
----------------------------
Attachment: kernel_20110923.patch
Okay, finally here comes to the fix. The new patch is kernel_20110923.patch.
Deployment is now fast.
To recap, the root cause is
- AAR file deployment uses a custom WSDL resolver (AARBasedWSDLLocator)
to resolve WSDL, XSD
- AARBasedWSDLLocator looks up http://www.w3.org/2001/xml.xsd directly
in W3C website
- Unfortunately, http://www.w3.org/2001/xml.xsd takes a long time to
respond
The fix is
- do not use AARBasedWSDLLocator -- actually not use any custom WSDL
resolver at all
- then the default URI resolver -- Woden's SimpleURIResolver will be
used
- Woden already has a downloaded local xml.xsd copy
- Woden deploys this local xml.xsd in woden-api JAR file
- The default SimpleURIResolver uses schema catalog that maintains a
real URL - local XSD copy table
- during lookup, http://www.w3.org/2001/xml.xsd will be resolved to the
local copy
- As a result, lookup will be able to find xml.xsd quickly making AAR
file to be deployed fast
> Simple Axis2 Server failed on deploying aar file
> ------------------------------------------------
>
> Key: AXIS2-5136
> URL: https://issues.apache.org/jira/browse/AXIS2-5136
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Reporter: Ping Liu
> Assignee: Ping Liu
> Attachments: SendSmsService.aar, deployed.doc, kernel.patch,
> kernel_20110923.patch
>
>
> This error was first found by Sagara. Following is the note from AXIS2-4170.
> -----------------------------------------------------------------------------------------------------------------
> 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
>
--
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]