You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2009/11/10 18:29:52 UTC

[jira] Created: (SMX4-423) Camel CXF Consumer does not work when deployed in JBI

Camel CXF Consumer does not work when deployed in JBI
-----------------------------------------------------

                 Key: SMX4-423
                 URL: https://issues.apache.org/activemq/browse/SMX4-423
             Project: ServiceMix 4
          Issue Type: Bug
    Affects Versions: 4.1.0
            Reporter: Sergey Beryozkin
             Fix For: 4.1.0, 4.0-m1


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&amp;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


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


[jira] Updated: (SMXCOMP-673) Camel CXF Consumer does not work when deployed in JBI

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen updated SMXCOMP-673:
------------------------------------

    Component/s: servicemix-camel

> Camel CXF Consumer does not work when deployed in JBI
> -----------------------------------------------------
>
>                 Key: SMXCOMP-673
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-673
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: servicemix-camel-2009.01
>            Reporter: Sergey Beryozkin
>            Assignee: Gert Vanthienen
>             Fix For: servicemix-camel-2009.02
>
>         Attachments: smx4-423.patch
>
>
> 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&amp;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

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


[jira] Commented: (SMX4-423) Camel CXF Consumer does not work when deployed in JBI

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55304#action_55304 ] 

Willem Jiang commented on SMX4-423:
-----------------------------------

Sorry , I send a wrong class file to Sergey for testing.  The patch is OK and should be applied into the svn repository.

> Camel CXF Consumer does not work when deployed in JBI
> -----------------------------------------------------
>
>                 Key: SMX4-423
>                 URL: https://issues.apache.org/activemq/browse/SMX4-423
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.1.0
>            Reporter: Sergey Beryozkin
>            Assignee: Gert Vanthienen
>             Fix For: 4.0-m1, 4.1.0
>
>         Attachments: smx4-423.patch
>
>
> 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&amp;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

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


[jira] Assigned: (SMX4-423) Camel CXF Consumer does not work when deployed in JBI

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned SMX4-423:
---------------------------------

    Assignee: Gert Vanthienen

Hi Gert,

Can you take a look at this patch ?

Thanks,
Willem

> Camel CXF Consumer does not work when deployed in JBI
> -----------------------------------------------------
>
>                 Key: SMX4-423
>                 URL: https://issues.apache.org/activemq/browse/SMX4-423
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.1.0
>            Reporter: Sergey Beryozkin
>            Assignee: Gert Vanthienen
>             Fix For: 4.0-m1, 4.1.0
>
>         Attachments: smx4-423.patch
>
>
> 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&amp;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

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


[jira] Commented: (SMX4-423) Camel CXF Consumer does not work when deployed in JBI

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55290#action_55290 ] 

Willem Jiang commented on SMX4-423:
-----------------------------------

Hi Sergey,

If you check out the [OsgiCamelJbiComponent.java|https://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-camel/trunk/src/main/java/org/apache/servicemix/camel/osgi/OsgiCamelJbiComponent.java], you will find current OsgiCamelJbiComponent hacks the classloader to let xbean load the schema file of camel-spring and camel-osgi.

This issue should be easy to fix by adding the camel-cxf into the classloader check list.
As I don't have the commit right of SMX, I will submit a patch for it.





> Camel CXF Consumer does not work when deployed in JBI
> -----------------------------------------------------
>
>                 Key: SMX4-423
>                 URL: https://issues.apache.org/activemq/browse/SMX4-423
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.1.0
>            Reporter: Sergey Beryozkin
>             Fix For: 4.0-m1, 4.1.0
>
>
> 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&amp;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

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


[jira] Resolved: (SMX4-423) Camel CXF Consumer does not work when deployed in JBI

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen resolved SMX4-423.
----------------------------------

    Resolution: Fixed

Fixed in http://svn.apache.org/viewvc?view=revision&revision=835035

> Camel CXF Consumer does not work when deployed in JBI
> -----------------------------------------------------
>
>                 Key: SMX4-423
>                 URL: https://issues.apache.org/activemq/browse/SMX4-423
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.1.0
>            Reporter: Sergey Beryozkin
>            Assignee: Gert Vanthienen
>             Fix For: 4.1.0, 4.0-m1
>
>         Attachments: smx4-423.patch
>
>
> 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&amp;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

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


[jira] Commented: (SMX4-423) Camel CXF Consumer does not work when deployed in JBI

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55299#action_55299 ] 

Sergey Beryozkin commented on SMX4-423:
---------------------------------------

The fix does not work

> Camel CXF Consumer does not work when deployed in JBI
> -----------------------------------------------------
>
>                 Key: SMX4-423
>                 URL: https://issues.apache.org/activemq/browse/SMX4-423
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.1.0
>            Reporter: Sergey Beryozkin
>            Assignee: Gert Vanthienen
>             Fix For: 4.0-m1, 4.1.0
>
>         Attachments: smx4-423.patch
>
>
> 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&amp;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

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


[jira] Updated: (SMX4-423) Camel CXF Consumer does not work when deployed in JBI

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang updated SMX4-423:
------------------------------

    Attachment: smx4-423.patch

> Camel CXF Consumer does not work when deployed in JBI
> -----------------------------------------------------
>
>                 Key: SMX4-423
>                 URL: https://issues.apache.org/activemq/browse/SMX4-423
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.1.0
>            Reporter: Sergey Beryozkin
>             Fix For: 4.0-m1, 4.1.0
>
>         Attachments: smx4-423.patch
>
>
> 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&amp;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

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


[jira] Moved: (SMXCOMP-673) Camel CXF Consumer does not work when deployed in JBI

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen moved SMX4-423 to SMXCOMP-673:
----------------------------------------------

        Fix Version/s:     (was: 4.1.0)
                           (was: 4.0-m1)
                       servicemix-camel-2009.02
    Affects Version/s:     (was: 4.1.0)
                       servicemix-camel-2009.01
                  Key: SMXCOMP-673  (was: SMX4-423)
              Project: ServiceMix Components  (was: ServiceMix 4)

> Camel CXF Consumer does not work when deployed in JBI
> -----------------------------------------------------
>
>                 Key: SMXCOMP-673
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-673
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: servicemix-camel-2009.01
>            Reporter: Sergey Beryozkin
>            Assignee: Gert Vanthienen
>             Fix For: servicemix-camel-2009.02
>
>         Attachments: smx4-423.patch
>
>
> 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&amp;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

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