ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MQConnectionFactory cannot be cast to javax.jms.QueueConnect

Post new topic  Reply to topic
 MQConnectionFactory cannot be cast to javax.jms.QueueConnect « View previous topic :: View next topic » 
Author Message
ivanachukapawn
PostPosted: Tue Nov 05, 2013 5:01 am    Post subject: MQConnectionFactory cannot be cast to javax.jms.QueueConnect Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

Receive this error message when running a NetBeans JMS client project: java.lang.ClassCastException: com.ibm.mq.jms.MQConnectionFactory cannot be cast to javax.jms.QueueConnectionFactory - I used MQExplorer (7.5.0.1) to create the JMS Administered objects (file-based initial context, connection factory and destination (with qmgr)) - The JMS client has this object: QueueConnectionFactory factory; - Curious as to why the MQExplorer-created JMS administered object Connection Factory does not match with the JMS client - but nevertheless, how to I fix this? According to the MQ Java/JMS developer documentation, I should be using JMS MQ Extensions - aren't the Extensions included automatically in the 7.5 client by way of the packaged .jars? If have these library .jars in my NetBeans project build configuration: artifactURI=null, type=0, property=${file.reference.com.ibm.mq.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@36af1586, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.com.ibm.mqjms.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@9825806a, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.jms.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@7a374575, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.jndi.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@77c81324, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.com.ibm.mq.commonservices.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@4013b151, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.com.ibm.mq.jmqi.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@f67ee5a3, broken=false, additional={}
artifactURI=null, type=0, property=${file.reference.com.ibm.mq.tools.ras.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@808c09a9, broken=false, additional={}
Back to top
View user's profile Send private message
ivanachukapawn
PostPosted: Tue Nov 05, 2013 9:36 am    Post subject: Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

OK guys. My apologies - hope you didn't spend any time on this. I found the dialogue in MQExplorer for creating connection factories - it asks for the type - and to make this work, I selected QueueConnectionFactory. Sorry about that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQConnectionFactory cannot be cast to javax.jms.QueueConnect
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.