You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ravi Gupta 7 <rg...@sapient.com> on 2014/10/10 06:59:58 UTC
Camel - 2.14 - Junit test cases failed - Could not create object of
extension class org.apache.cxf.transport.jms.JMSTransportFactory
Hi,
I am using camel 2.14.0 version and supporting the cxf endpoint - for soap/rest / soapjms
Application is working fine while accessing these cxf endpoint but the junit test cases fails due to the below reason:
Could not create object of extension class org.apache.cxf.transport.jms.JMSTransportFactory.
Everything works fine if I changes the camel version back to 2.13.1.
I am using the below dependencies in pom.xml.
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<version>${camel.version}</version>
<exclusions>
<exclusion>
<artifactId>spring-context</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle-jaxrs</artifactId>
<version>2.7.12</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>
<version>2.6.0.redhat-60024</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-asm</artifactId>
</exclusion>
<exclusion>
<artifactId>spring-context</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
</exclusions>
</dependency>
Please help.
Thanks & Regards,
Ravi Gupta
Re: Camel - 2.14 - Junit test cases failed - Could not create
object of extension class
org.apache.cxf.transport.jms.JMSTransportFactory
Posted by Willem Jiang <wi...@gmail.com>.
You are using different version version CXF in you class path.
Please update the cxf-bundle and dxf-bundle-jaxrs version to 3.0.1 when you use camel 2.14.0.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On October 10, 2014 at 1:00:29 PM, Ravi Gupta 7 (rgupta76@sapient.com) wrote:
> Hi,
> I am using camel 2.14.0 version and supporting the cxf endpoint - for soap/rest / soapjms
> Application is working fine while accessing these cxf endpoint but the junit test cases
> fails due to the below reason:
> Could not create object of extension class org.apache.cxf.transport.jms.JMSTransportFactory.
>
> Everything works fine if I changes the camel version back to 2.13.1.
>
> I am using the below dependencies in pom.xml.
>
> org.apache.camel
> camel-cxf
> ${camel.version}
>
>
> spring-context
> org.springframework
>
>
>
>
> org.apache.cxf
> cxf-bundle-jaxrs
> 2.7.12
>
>
> org.apache.cxf
> cxf-bundle
> 2.6.0.redhat-60024
>
>
> org.springframework
> spring-asm
>
>
> spring-context
> org.springframework
>
>
>
>
> Please help.
>
> Thanks & Regards,
> Ravi Gupta
>
>
>