Can you double check if there are different version JMS API jars in you war and web sphere container?
-- 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 July 21, 2014 at 4:21:58 PM, Frankiboy ([email protected]) wrote: > My camel.xml > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > 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/spring > http://camel.apache.org/schema/spring/camel-spring.xsd > http://camel.apache.org/schema/cxf > http://camel.apache.org/schema/cxf/camel-cxf.xsd"> > > > class="dk.bankconnect.hub.controller.CentralRouter" /> > > > > > > > > > > > > > > > > > xmlns="http://service.bankconnect.dk" wsdlURL="WEB-INF/bankconnect.wsdl" > /> > > > > > > > > > > > > Using this jars gives me the problem: > > Camel-jms-2.12.jar > Spring-jms-3.0.7.RELEASE.jar > > > com.ibm.mq.commonservice.jar > com.ibm.mq.headers.jar > com.ibm.mq.mq.jar > com.ibm.mq.jmqi.jar > com.ibm.mq.pcf.jar > > > > > > I got this error: > > E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated > SRVE0283E: Exception caught while initializing context: {0} > > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'activemq' defined in class path resource [camel.xml]: > > Initialization of bean failed; nested exception is > org.springframework.beans.ConversionNotSupportedException: Failed to convert > property value of type 'com.ibm.mq.jms.MQConnectionFactory' > > to required type 'javax.jms.ConnectionFactory' for property > 'connectionFactory'; nested exception is java.lang.IllegalStateException: > Cannot convert value of type > > [com.ibm.mq.jms.MQConnectionFactory] to required type > [javax.jms.ConnectionFactory] for property 'connectionFactory': no matching > editors or conversion strategy found > > That typically means you have multiple copies of the javax,jms classes on > the classpath (e.g. from both IBM MQ and geronimo). > > > > > > If i remove the spring-jms i got this Error: > > E com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0100E: Uncaught > init() exception created by servlet CXFServlet in application > BankConnectHub_war: > > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'activemq' defined in class path resource [camel.xml]: > Initialization of bean failed; nested > > exception is java.lang.NoClassDefFoundError: > org.springframework.jms.support.converter.MessageConverter > > > > If i remove Camel-jms-2.12.jar > > E com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0100E: Uncaught > init() exception created by servlet CXFServlet in application > BankConnectHub_war: > > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'camel-1': Invocation of init method failed; nested exception is > > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [org.apache.camel.component.jms.JmsComponent] for bean with name > 'activemq' defined in class path > > resource [camel.xml]; nested exception is java.lang.ClassNotFoundException: > org.apache.camel.component.jms.JmsComponent > > > So any good idea, how to find out to setup the correct camel.xml ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Classpath-problem-any-good-ideas-tp5753335p5754124.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >
