1 Reply Latest reply on May 24, 2010 11:23 PM by jamie xiao

    FileNotFoundException: cllass path resource [Hello.wsdl]cannot be opened...

    jamie xiao Newbie

      Hello,

      When I try to hotdeploy a hello service by dropping the .jar file into the hotdeploy folder in fuse at Unix, the follow error msg prompt.

      What should I do for this?Thanks

      And the context is fuse-3.4.0.5

      -


      INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive changed: processing my-cxf-sa-1.0-SNAPSHOT.jar ...

      ERROR - CxfBcComponent                 - javax.jbi.management.DeploymentException: java.io.FileNotFoundException: class path resource cannot be opened because it does not exist

      :1:1: Content is not allowed in prolog.

      ERROR - AutoDeploymentService          - Failed to update Service Assembly: my-cxf-sa

      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>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>Unable to parse result string</loc-message>

      </msg-loc-info>

      </task-status-msg>

      <exception-info>

      <nesting-level>1</nesting-level>

      <loc-token/>

      <loc-message>java.io.FileNotFoundException: class path resource cannot be opened because it does not exist</loc-message>

      <stack-trace><![CDATA[javax.jbi.management.DeploymentException: java.io.FileNotFoundException: class path resource cannot be opened because it does not exist

              at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:541)

              at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)

              at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)

              at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)

              at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)

              at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)

              at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)

              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:537)

              at java.util.TimerThread.run(Timer.java:487)

      Caused by: java.io.FileNotFoundException: class path resource cannot be opened because it does not exist

              at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:143)

              at org.apache.servicemix.cxfbc.CxfBcConsumer.retrieveWSDL(CxfBcConsumer.java:619)

              at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:410)

              ... 13 more

      ]]></stack-trace>

      </exception-info>

      </task-result-details>

      </component-task-result-details>

      </component-task-result>

      </jbi-task-result>

      </jbi-task>

       

              at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)

              at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)

              at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:555)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)

              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:537)

              at java.util.TimerThread.run(Timer.java:487)

      WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic install of /opt/progress/fuse-esb-3.4.0.5/hotdeploy/my-cxf-sa-1.0-SNAPSHOT.jar failed

      javax.jbi.management.DeploymentException: Failed to update Service Assembly: my-cxf-sa

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:364)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)

              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:537)

              at java.util.TimerThread.run(Timer.java:487)

      Caused by:

      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>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>Unable to parse result string</loc-message>

      </msg-loc-info>

      </task-status-msg>

      <exception-info>

      <nesting-level>1</nesting-level>

      <loc-token/>

      <loc-message>java.io.FileNotFoundException: class path resource cannot be opened because it does not exist</loc-message>

      <stack-trace><![CDATA[javax.jbi.management.DeploymentException: java.io.FileNotFoundException: class path resource cannot be opened because it does not exist

              at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:541)

              at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)

              at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)

              at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)

              at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)

              at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)

              at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)

              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:537)

              at java.util.TimerThread.run(Timer.java:487)

      Caused by: java.io.FileNotFoundException: class path resource cannot be opened because it does not exist

              at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:143)

              at org.apache.servicemix.cxfbc.CxfBcConsumer.retrieveWSDL(CxfBcConsumer.java:619)

              at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:410)

              ... 13 more

      ]]></stack-trace>

      </exception-info>

      </task-result-details>

      </component-task-result-details>

      </component-task-result>

      </jbi-task-result>

      </jbi-task>

       

              at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)

              at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)

              at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:555)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)

              ... 6 more

        • 1. Re: FileNotFoundException: cllass path resource [Hello.wsdl]cannot be opened...
          jamie xiao Newbie

          I have fixed this issue by coping the hello.wsdl file to the ./data...folder of servicemix. But I meet another issue and still have no idea about this.

           

          ERROR - CxfBcComponent                 - javax.jbi.management.DeploymentException: org.apache.cxf.endpoint.EndpointException

          :1:1: Content is not allowed in prolog.

          ERROR - AutoDeploymentService          - Failed to update Service Assembly: my-cxf-sa

          java.lang.Exception:

           

                  at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)

                  at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)

                  at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:555)

                  at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)

                  ... 6 more