camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9829) camel-cxf namespace parser has hard dependency on jaxrs client
Date Thu, 07 Apr 2016 08:19:25 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229888#comment-15229888
] 

Claus Ibsen commented on CAMEL-9829:
------------------------------------

camel-cxf is need to be splitted up into several components. There is a ticket about that
already.

> camel-cxf namespace parser has hard dependency on jaxrs client
> --------------------------------------------------------------
>
>                 Key: CAMEL-9829
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9829
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: 2.17.0
>            Reporter: Niels Ull Harremoes
>            Priority: Minor
>
> I am trying to declare an endpoint like this in my spring context:
> {code}
>     <cxf:cxfEndpoint  
>          xmlns:cxf="http://camel.apache.org/schema/cxf"
>          id="myEndpoint" address="${myUrl}"/>
> {code}
> I want to use it in a route like this: .to("cxf:bean:myEndpoint?dataFormat=PAYLOAD")
> I am not using rs, but the cxf NamespaceHandler has a dependency CxfRsClientFactoryBeanDefinitionParser
which again has a dependency on org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean so I get
a java.lang.NoClassDefFoundError.
> I found a workaround - not using the cxf namespace and declaring a bean of class org.apache.camel.component.cxf.CxfSpringEndpoint.
> But the error was a bit hard to diagnose.
> Could the NamespaceHandler lazy-load the xxxBeanDefinitionParser instances so that the
class CxfRsClientFactoryBeanDefinitionParser doesn't get loaded if I don't have a cxf:rsClient
tag?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message