Integration with MQ over JMS

k_rajesh_n72's picture
Hello, As the doco says i have copied the MQ jars into "C:\Work\ESB\wso2esb-2.1.0\repository\components\extensions" and also in the lib. But i'am still getting a class cast exception. Kindly advice Detail: [2009-10-13 13:54:27,333] INFO - JMSSender JMS Sender started [2009-10-13 13:54:28,114] ERROR - BaseUtils JNDI lookup of name WSO2QCF returned a com.ibm.mq.jms.MQQueueConnectionFacto ry while a interface javax.jms.ConnectionFactory was expected [2009-10-13 13:54:28,129] ERROR - CarbonServerManager Error while populating transport properties from the registry. org.apache.axis2.transport.base.BaseTransportException: JNDI lookup of name WSO2QCF returned a com.ibm.mq.jms.MQQueueCon nectionFactory while a interface javax.jms.ConnectionFactory was expected at org.apache.axis2.transport.base.BaseUtils.handleException(BaseUtils.java:168) at org.apache.axis2.transport.jms.JMSUtils.lookup(JMSUtils.java:570) at org.apache.axis2.transport.jms.JMSConnectionFactory.(JMSConnectionFactory.java:94) at org.apache.axis2.transport.jms.JMSConnectionFactoryManager.loadConnectionFactoryDefinitions(JMSConnectionFact oryManager.java:65) at org.apache.axis2.transport.jms.JMSConnectionFactoryManager.(JMSConnectionFactoryManager.java:51) at org.apache.axis2.transport.jms.JMSSender.init(JMSSender.java:62) at org.wso2.carbon.core.init.CarbonServerManager.populateTransportParams(CarbonServerManager.java:834) at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:376) at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:228) at org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:82) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330) [2009-10-13 13:54:28,207] FATAL - CarbonServerManager WSO2 Carbon initialization Failed javax.servlet.ServletException: Error while populating transport properties from the registry. at org.wso2.carbon.core.init.CarbonServerManager.populateTransportParams(CarbonServerManager.java:845) at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:376) at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:228) at org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:82) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
supun's picture

First can you put them only

First can you put them only in to the repository/components/lib folder and try? Also there can be jar files created in the dropins directory for the once you put in to the lib directory. Can you delete them before yo start the ESB as well? Supun..
k_rajesh_n72's picture

Thanks...I ended up putting

Thanks...I ended up putting this in lib folder and it worked. However ran into this bug "https://wso2.org/jira/browse/ESBJAVA-542". is there a current version where this issue is resolved.
supun's picture

What is the version of ESB

What is the version of ESB you are using? If it doesn't work with ESB 2.1.1 it is not fixed. Thanks, Supun..
mmcnaughton.libredigital.com's picture

Same issue

I'm having the exact same class cast error of "BaseUtils JNDI lookup of name WSO2QCF returned a com.ibm.mq.jms.MQQueueConnectionFactory while a interface javax.jms.ConnectionFactory was expected" I have tried the other suggestions here with no luck. I have also read that a competing version of the jms api in the classpath can cause such an error but I have not been able to locate another jms api loading anywhere. (If I remove the one that is known, I receive a NoClassDefFoundError: javax/jms/QueueConnectionFactory error). I have tried both the v6 and v7 versions of the WSMQ client jars. Has anyone else encountered and possibly resolved this issue?
fordendk's picture

Im getting the same problem trying to configure WLS 10.3 JMS

ERROR [21 Sep 2010 13:24:02] BaseUtils - JNDI lookup of name /jms/customerInfoTopicCF returned a weblogic.jms.client.JMSConnectionFactory while a interface javax.jms.ConnectionFactory was expected I am using ESB 3.0.0. Does anyone have a fix for this? thanks in advance
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)