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 » Problem with creating queue connection, using conection fact

Post new topic  Reply to topic
 Problem with creating queue connection, using conection fact « View previous topic :: View next topic » 
Author Message
agokli
PostPosted: Sun Feb 03, 2002 5:33 am    Post subject: Reply with quote

Novice

Joined: 04 Jan 2002
Posts: 12

I am using MQSeries, JMS and LDAP to store administrative objects (e.g. Connection factories and Queues).

I can successfully access connection factory object (e.g. QueueConnectionFactory qcf = (QueueConnectionFactory) ctx.lookup("myQCF"). When I try to create connection (e.g. QueueConnection qCon = qcf.createQueueConnection(), I get an exception as follows:

Exception in thread "main" java.lang.NoSuchMethodError
at com.ibm.mq.jms.MQConnection.(init)(MQConnection.java:145)
at com.ibm.mq.jms.MQQueueConnection.(init)(MQQueueConnection.java:89)
at com.ibm.mq.jms.MQQueueConnection.(init)(MQQueueConnection.java:76)
at om.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactorty 143)
at sample.main(sample.java:49)

I receieve same type of error, when running samples, which are provided with JMS support pack. MQSeries and default Queue Manager are running. I am running program in binding mode (e.g. default).

In class path, I hav included all required jar files.

Can any one help me to resolve this problem?

Thanks

Back to top
View user's profile Send private message
kolban
PostPosted: Sun Feb 03, 2002 3:21 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Could you post your CLASSPATH settings when you attempt to run the program? What platform are you running on?

[ This Message was edited by: kolban on 2002-02-03 15:21 ]
Back to top
View user's profile Send private message
agokli
PostPosted: Sun Feb 03, 2002 7:00 pm    Post subject: Reply with quote

Novice

Joined: 04 Jan 2002
Posts: 12

Back to top
View user's profile Send private message
agokli
PostPosted: Sun Feb 03, 2002 7:06 pm    Post subject: Reply with quote

Novice

Joined: 04 Jan 2002
Posts: 12

I am running MQSeries and MQ-JMS on Windows NT.

Here are the class path for jdk and jar files:

@echo off
set PATH=%PATH%;d:jdk1.3bin;.;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalib;.;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalibcom.ibm.mqjms.jar;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalibjms.jar;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalibcom.ibm.mq.jar;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalibjndi.jar;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalibproviderutil.jar;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalibldap.jar;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalibfscontext.jar;
set CLASSPATH=%CLASSPATH%;d:mqprogram filesIBMMQSeriesJavalibjta.jar;

Am I required to defind "BIND" mode and default MQ Manager, as part of JMS Admin. Object?

Thanks

Back to top
View user's profile Send private message
kolban
PostPosted: Sun Feb 03, 2002 7:28 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

I notice that your first CLASSPATH entry appends to an already existing CLASSPATH. Can you echo %CLASSPATH% in the environment in which the failure occurs and post the complete string? I guess I am fishing for some other (non-IBM) JMS classes in the path. Can you also dump (using JMSAdmin) the managed object for the queue connection factory and post also?
Back to top
View user's profile Send private message
agokli
PostPosted: Tue Feb 05, 2002 6:03 am    Post subject: Reply with quote

Novice

Joined: 04 Jan 2002
Posts: 12

Back to top
View user's profile Send private message
agokli
PostPosted: Tue Feb 05, 2002 6:04 am    Post subject: Reply with quote

Novice

Joined: 04 Jan 2002
Posts: 12

Thanks for assistance.

I have resolved he issue. Problem was related to CLASSPATH settings.

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 » Problem with creating queue connection, using conection fact
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.