[ 
https://issues.apache.org/activemq/browse/SM-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42762#action_42762
 ] 

Freeman Fang commented on SM-1351:
----------------------------------

Since JBI container only receives a DOM document from the JBI component and has 
no way to know the base location (if there is one). so we need transform the 
relative path import xsd to inline xsd to avoid exception like
avax.wsdl.WSDLException: WSDLException (at 
/wsdl:definitions/wsdl:types/s:schema): faultCode=OTHER_ERROR: An error 
occurred trying to resolve schema referenced
 at 'GetDriverDetailsBase.xsd'.: java.io.FileNotFoundException: This file was 
not found: file:/C:/apache-servicemix-3.3.1-fuse/GetDriverDetailsBase.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.jbi.framework.support.WSDL1Processor.process(WSDL1Processor.java:75)
        at 
org.apache.servicemix.jbi.framework.EndpointRegistry.registerInternalEndpoint(EndpointRegistry.java:203)
        at 
org.apache.servicemix.jbi.framework.Registry.activateEndpoint(Registry.java:194)
        at 
org.apache.servicemix.jbi.framework.ComponentContextImpl.activateEndpoint(ComponentContextImpl.java:126)
        at 
org.apache.servicemix.common.endpoints.ProviderEndpoint.start(ProviderEndpoint.java:58)
        at 
org.apache.servicemix.cxfbc.CxfBcProvider.start(CxfBcProvider.java:305)
        at 
org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:55)
        at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:53)
        at 
org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
        at 
org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
        at 
org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:132)
        at 
org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:378)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:355)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
        at 
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
        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:/apache-servicemix-3.3.1-fuse/GetDriverDetailsBase.xsd
        at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)
        ... 26 more

see related comment in SM-375
https://issues.apache.org/activemq/browse/SM-375

> Cxf Bc should transform import xsd to inline xsd for endpoint's definition
> --------------------------------------------------------------------------
>
>                 Key: SM-1351
>                 URL: https://issues.apache.org/activemq/browse/SM-1351
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to