1 Reply Latest reply on Nov 2, 2009 6:00 AM by Martin Murphy

    addNamespace() error CXF-BC

    m k Newbie

      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>javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Can

      't find prefix for 'http://wsdl.myfirmservice.com/common'. Namespace prefixes must be s

      et on the Definition object using the addNamespace(...) method.</loc-message>

      <stack-trace><![CDATA[javax.jbi.management.DeploymentException: javax.wsdl.WSDLE

      xception: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://ws

      dl.myfirmservice.com/common'. Namespace prefixes must be set on the Definition object u

      sing the addNamespace(...) method.

              at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java

      :504)

              at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeploy

      er.java:58)

              at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBe

      anDeployer.java:55)

              at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(Abstr

      actXBeanDeployer.java:97)

              at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServ

      iceUnitManager.java:88)

              at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServic

      eUnitManager.java:69)

              at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAs

      sembly(DeploymentService.java:520)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi

      ceAssembly(AutoDeploymentService.java:349)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi

      ve(AutoDeploymentService.java:255)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDire

      ctory(AutoDeploymentService.java:658)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(

      AutoDeploymentService.java:63)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoD

      eploymentService.java:622)

              at java.util.TimerThread.mainLoop(Timer.java:512)

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

      Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Can't

      find prefix for 'http://wsdl.myfirmservice.com/common'. Namespace prefixes must be set

      on the Definition object using the addNamespace(...) method.

              at com.ibm.wsdl.util.xml.DOMUtils.getPrefix(Unknown Source)

              at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedValue(Unknown Source)

              at com.ibm.wsdl.util.xml.DOMUtils.printQualifiedAttribute(Unknown Source

      )

              at com.ibm.wsdl.xml.WSDLWriterImpl.printFaults(Unknown Source)

              at com.ibm.wsdl.xml.WSDLWriterImpl.printOperations(Unknown Source)

              at com.ibm.wsdl.xml.WSDLWriterImpl.printPortTypes(Unknown Source)

              at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)

              at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)

              at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)

              at org.apache.servicemix.cxfbc.CxfBcProvider.validate(CxfBcProvider.java

      :474)

              ... 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(Managem

      entSupport.java:125)

              at org.apache.servicemix.jbi.framework.ManagementSupport.failure(Managem

      entSupport.java:111)

              at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAs

      sembly(DeploymentService.java:555)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi

      ceAssembly(AutoDeploymentService.java:349)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi

      ve(AutoDeploymentService.java:255)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDire

      ctory(AutoDeploymentService.java:658)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(

      AutoDeploymentService.java:63)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoD

      eploymentService.java:622)

              at java.util.TimerThread.mainLoop(Timer.java:512)

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

      WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic install

      of C:\Program Files\Apache Software Foundation\ServiceMix\apache-servicemix-3.3

      .1\hotdeploy\wsdl-test-2-sa-1.0-SNAPSHOT.jar failed

      javax.jbi.management.DeploymentException: Failed to update Service Assembly: wsd

      l-test-2-sa

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi

      ceAssembly(AutoDeploymentService.java:364)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi

      ve(AutoDeploymentService.java:255)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDire

      ctory(AutoDeploymentService.java:658)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(

      AutoDeploymentService.java:63)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoD

      eploymentService.java:622)

              at java.util.TimerThread.mainLoop(Timer.java:512)

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

      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

      ">

       

       

      What is wrong with my WSDL file? My wsdl is importing some other wsdl and xsd. What should I do in wsdl or maybe in cxf-bc xbean.xml??

       

      Best regards,

      MK