Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-673

Camel CXF Consumer does not work when deployed in JBI

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When SA containing the following camel context :

      <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:camel="http://camel.apache.org/schema/spring"
      xmlns:cxf="http://camel.apache.org/schema/cxf"

      xsi:schemaLocation="
      http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans.xsd
      http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf-2.0.xsd
      http://camel.apache.org/schema/spring
      http://camel.apache.org/schema/spring/camel-spring.xsd">

      <cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9001/PersonService"
      serviceClass="org.apache.servicemix.samples.wsdl_first.PersonService">
      <cxf:properties>
      <entry key="dataFormat" value="MESSAGE"/>
      <entry key="wsdlURL" value="person.wsdl"/>
      <entry key="serviceName" value="

      {http://servicemix.apache.org/samples/wsdl-first}

      PersonService"/>
      <entry key="portName" value="

      {http://servicemix.apache.org/samples/wsdl-first}

      soap4"/>
      </cxf:properties>
      </cxf:cxfEndpoint>

      <camel:camelContext>
      <camel:route>
      <camel:from uri="jbi:endpoint:http://servicemix.apache.org/samples/wsdl-first/receiver/endpoint" />
      <setHeader headerName="Content-Type">
      <constant>application/xml</constant>
      </setHeader>
      <camel:to uri="http://localhost:9000/PersonService/"/>
      <!--
      <camel:to uri="cxf:http://localhost:9000/PersonService/?dataFormat=MESSAGE&amp;wsdlURL=person.wsdl&amp;serviceName=

      {http://servicemix.apache.org/samples/wsdl-first}

      PersonService&portName=

      {http://servicemix.apache.org/samples/wsdl-first}

      soap3" />
      -->

      <camel:to uri="log:soapresponse"/>
      </camel:route>

      <camel:route>
      <camel:from uri="cxf:bean:serviceEndpoint"/>
      <camel:to uri="log:soapresponse2"/>
      </camel:route>

      </camel:camelContext>

      </beans>

      is deployed, the following exception is thrown :

      Caused by: javax.jbi.management.DeploymentException: <component-task-result xmln
      s="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-camel</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>
      Could not deploy xbean service unit</loc-message></msg-loc-info></task-status-ms
      g>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>Unrecognized xbean namespac
      e mapping: http://camel.apache.org/schema/cxf</loc-message>
      <stack-trace><![CDATA[org.springframewor
      k.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mappi
      ng: http://camel.apache.org/schema/cxf
      at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFr
      omExtensionElement(XBeanNamespaceHandler.java:277)
      at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBean
      NamespaceHandler.java:155)
      at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanN
      amespaceHandler.java:49)

      You can reproduce it by updating the camel SU attached to https://issues.apache.org/activemq/browse/SMX4-422

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gertvanthienen Gert Vanthienen
            sergey_beryozkin Sergey Beryozkin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment