问题描述
在AIX系统中装的fuse-3.4.0.5,当把在windows环境下可以正常运行的服务,丢到AIX系统中hotdeploy目录后,servicemix的窗口提示下列错误,不知道该怎么办啊~~~INFO-AutoDeploymentService-Directory:hotdeploy:Archivechanged:processingmy-cxf-sa-1.0-SNAPSHOT.jar...ERROR-CxfBcComponent-javax.jbi.management.DeploymentException:java.io.FileNotFoundException:classpathresource[Hello.wsdl]cannotbeopenedbecauseitdoesnotexist[FatalError]:1:1:Contentisnotallowedinprolog.ERROR-AutoDeploymentService-FailedtoupdateServiceAssembly:my-cxf-sajava.lang.Exception:<?xmlversion="1.0"encoding="UTF-8"?><jbi-taskxmlns="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>deploy</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><component-name>servicemix-cxf-bc</component-name><component-task-result-details><task-result-details><task-id>deploy</task-id><task-result>FAILED</task-result><message-type>ERROR</message-type><task-status-msg><msg-loc-info><loc-token/><loc-message>Unabletoparseresultstring</loc-message></msg-loc-info></task-status-msg><exception-info><nesting-level>1</nesting-level><loc-token/><loc-message>java.io.FileNotFoundException:classpathresource[Hello.wsdl]cannotbeopenedbecauseitdoesnotexist</loc-message><stack-trace><![CDATA[javax.jbi.management.DeploymentException:java.io.FileNotFoundException:classpathresource[Hello.wsdl]cannotbeopenedbecauseitdoesnotexistatorg.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:541)atorg.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)atorg.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)atorg.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)atorg.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)atorg.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)atorg.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)atorg.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)atjava.util.TimerThread.mainLoop(Timer.java:537)atjava.util.TimerThread.run(Timer.java:487)Causedby:java.io.FileNotFoundException:classpathresource[Hello.wsdl]cannotbeopenedbecauseitdoesnotexistatorg.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:143)atorg.apache.servicemix.cxfbc.CxfBcConsumer.retrieveWSDL(CxfBcConsumer.java:619)atorg.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:410)...13more]]></stack-trace></exception-info></task-result-details></component-task-result-details></component-task-result></jbi-task-result></jbi-task>atorg.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)atorg.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)atorg.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:555)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)atorg.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)atjava.util.TimerThread.mainLoop(Timer.java:537)atjava.util.TimerThread.run(Timer.java:487)WARN-AutoDeploymentService-Directory:hotdeploy:Automaticinstallof/opt/progress/fuse-esb-3.4.0.5/hotdeploy/my-cxf-sa-1.0-SNAPSHOT.jarfailedjavax.jbi.management.DeploymentException:FailedtoupdateServiceAssembly:my-cxf-saatorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:364)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)atorg.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)atjava.util.TimerThread.mainLoop(Timer.java:537)atjava.util.TimerThread.run(Timer.java:487)Causedby:java.lang.Exception:<?xmlversion="1.0"encoding="UTF-8"?><jbi-taskxmlns="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>deploy</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><component-name>servicemix-cxf-bc</component-name><component-task-result-details><task-result-details><task-id>deploy</task-id><task-result>FAILED</task-result><message-type>ERROR</message-type><task-status-msg><msg-loc-info><loc-token/><loc-message>Unabletoparseresultstring</loc-message></msg-loc-info></task-status-msg><exception-info><nesting-level>1</nesting-level><loc-token/><loc-message>java.io.FileNotFoundException:classpathresource[Hello.wsdl]cannotbeopenedbecauseitdoesnotexist</loc-message><stack-trace><![CDATA[javax.jbi.management.DeploymentException:java.io.FileNotFoundException:classpathresource[Hello.wsdl]cannotbeopenedbecauseitdoesnotexistatorg.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:541)atorg.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)atorg.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)atorg.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)atorg.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)atorg.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)atorg.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)atorg.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)atjava.util.TimerThread.mainLoop(Timer.java:537)atjava.util.TimerThread.run(Timer.java:487)Causedby:java.io.FileNotFoundException:classpathresource[Hello.wsdl]cannotbeopenedbecauseitdoesnotexistatorg.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:143)atorg.apache.servicemix.cxfbc.CxfBcConsumer.retrieveWSDL(CxfBcConsumer.java:619)atorg.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:410)...13more]]></stack-trace></exception-info></task-result-details></component-task-result-details></component-task-result></jbi-task-result></jbi-task>atorg.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)atorg.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)atorg.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:555)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)...6more
解决方案
解决方案二:
解决方案三:
不太懂说你的PATH路径不存在
解决方案四:
就是不知道为什么会说不存在,在windows下面一切都是好好的,我的web服务是在第三台主机上实现的,esb只是负责接收请求转发给服务,后来只是把servicemix从windows操作系统下面搬到了AIX上,按道理说除了修改了su文件夹里面xbean当中provider的location指明服务的IP地址和wsdl文件中localhost的地址应该就好的。不知道为什么不行。只是有个差别是AIX的主机是不能连外网的。
解决方案五:
补充一下,我在servicemix的./data里面把windows里面对应的内容copy进去了,这个问题解决了,但是新的问题又出现了……苦闷ERROR-CxfBcComponent-javax.jbi.management.DeploymentException:org.apache.cxf.endpoint.EndpointException[FatalError]:1:1:Contentisnotallowedinprolog.ERROR-AutoDeploymentService-FailedtoupdateServiceAssembly:my-cxf-sajava.lang.Exception:<?xmlversion="1.0"encoding="UTF-8"?><jbi-taskxmlns="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>deploy</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><component-name>servicemix-cxf-bc</component-name><component-task-result-details><task-result-details><task-id>deploy</task-id><task-result>FAILED</task-result><message-type>ERROR</message-type><task-status-msg><msg-loc-info><loc-token/><loc-message>Unabletoparseresultstring</loc-message></msg-loc-info></task-status-msg><exception-info><nesting-level>1</nesting-level><loc-token/><loc-message>org.apache.cxf.endpoint.EndpointException</loc-message><stack-trace><![CDATA[javax.jbi.management.DeploymentException:org.apache.cxf.endpoint.EndpointExceptionatorg.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:502)atorg.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)atorg.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)atorg.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)atorg.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)atorg.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)atorg.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)atorg.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)atjava.util.TimerThread.mainLoop(Timer.java:537)atjava.util.TimerThread.run(Timer.java:487)Causedby:org.apache.cxf.endpoint.EndpointExceptionatorg.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:132)atorg.apache.cxf.endpoint.EndpointImpl.<init>(EndpointImpl.java:81)atorg.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:463)...13moreCausedby:org.apache.cxf.BusException:Nobindingfactoryfornamespacehttp://schemas.xmlsoap.org/wsdl/http/registered.atorg.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:91)atorg.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:129)...15more]]></stack-trace></exception-info></task-result-details></component-task-result-details></component-task-result></jbi-task-result></jbi-task>atorg.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)atorg.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)atorg.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:555)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)atorg.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)atjava.util.TimerThread.mainLoop(Timer.java:537)atjava.util.TimerThread.run(Timer.java:487)WARN-AutoDeploymentService-Directory:hotdeploy:Automaticinstallof/opt/progress/fuse-esb-3.4.0.5/hotdeploy/my-cxf-sa-1.0-SNAPSHOT.jarfailedjavax.jbi.management.DeploymentException:FailedtoupdateServiceAssembly:my-cxf-saatorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:364)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)atorg.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)atjava.util.TimerThread.mainLoop(Timer.java:537)atjava.util.TimerThread.run(Timer.java:487)Causedby:java.lang.Exception:<?xmlversion="1.0"encoding="UTF-8"?><jbi-taskxmlns="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>deploy</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><component-name>servicemix-cxf-bc</component-name><component-task-result-details><task-result-details><task-id>deploy</task-id><task-result>FAILED</task-result><message-type>ERROR</message-type><task-status-msg><msg-loc-info><loc-token/><loc-message>Unabletoparseresultstring</loc-message></msg-loc-info></task-status-msg><exception-info><nesting-level>1</nesting-level><loc-token/><loc-message>org.apache.cxf.endpoint.EndpointException</loc-message><stack-trace><![CDATA[javax.jbi.management.DeploymentException:org.apache.cxf.endpoint.EndpointExceptionatorg.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:502)atorg.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)atorg.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)atorg.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)atorg.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)atorg.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)atorg.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)atorg.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)atjava.util.TimerThread.mainLoop(Timer.java:537)atjava.util.TimerThread.run(Timer.java:487)Causedby:org.apache.cxf.endpoint.EndpointExceptionatorg.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:132)atorg.apache.cxf.endpoint.EndpointImpl.<init>(EndpointImpl.java:81)atorg.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java:463)...13moreCausedby:org.apache.cxf.BusException:Nobindingfactoryfornamespacehttp://schemas.xmlsoap.org/wsdl/http/registered.atorg.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:91)atorg.apache.cxf.endpoint.EndpointImpl.createBinding(EndpointImpl.java:129)...15more]]></stack-trace></exception-info></task-result-details></component-task-result-details></component-task-result></jbi-task-result></jbi-task>atorg.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)atorg.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)atorg.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:555)atorg.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)...6more