HTTP SU not getting deployed for WSDL that have inported XSDs
ludlow Feb 4, 2010 5:14 AMHi
I have a WSDL which is defined in xbean to be exposed for an HTTP endpoint. This WSDL imports further XSDs. When i try to deploy this component, following excetion occurs and deployment gets failed.
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-http</component-name>
<component-task-result-details>
<task-result-details>
<task-id>init</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to init service unit</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<msg-loc-info>
<loc-token/>
<loc-message>WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema[1]): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'CreditDecisionFlow_schema1.xsd'.: java.io.FileNotFoundException: This file was not found: file:/C:/ServiceMix/fuse-3.4.0.4/./CreditDecisionFlow_schema1.xsd</loc-message>
<stack-trace><![CDATA[javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema[1]): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'CreditDecisionFlow_schema1.xsd'.: java.io.FileNotFoundException: This file was not found: file:/C:/ServiceMix/fuse-3.4.0.4/./CreditDecisionFlow_schema1.xsd
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.useProvidedWsdl(HttpSoapConsumerEndpoint.java:176)
at org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.activate(HttpSoapConsumerEndpoint.java:308)
at org.apache.servicemix.common.DefaultServiceUnit.init(DefaultServiceUnit.java:54)
at org.apache.servicemix.common.BaseServiceUnitManager.init(BaseServiceUnitManager.java:122)
at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.init(ServiceUnitLifeCycle.java:85)
at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:145)
at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:390)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingSAs(AutoDeploymentService.java:474)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingComponents(AutoDeploymentService.java:526)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateSharedLibrary(AutoDeploymentService.java:313)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.io.FileNotFoundException: This file was not found: file:/C:/ServiceMix/fuse-3.4.0.4/./CreditDecisionFlow_schema1.xsd
at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)
... 23 more
]]></stack-trace>
</msg-loc-info>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
Please find attached my WSDL, the imported XSDs and xbean.xml
-
xbean.xml 1.3 KB
-
LoanPathService.wsdl 1.9 KB
-
CreditDecisionFlow_schema2.xsd 780 bytes