Author |
Message
|
agokli |
Posted: Sun Feb 03, 2002 5:33 am Post subject: |
|
|
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 |
|
 |
kolban |
Posted: Sun Feb 03, 2002 3:21 pm Post subject: |
|
|
 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 |
|
 |
agokli |
Posted: Sun Feb 03, 2002 7:00 pm Post subject: |
|
|
Novice
Joined: 04 Jan 2002 Posts: 12
|
|
Back to top |
|
 |
agokli |
Posted: Sun Feb 03, 2002 7:06 pm Post subject: |
|
|
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 |
|
 |
kolban |
Posted: Sun Feb 03, 2002 7:28 pm Post subject: |
|
|
 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 |
|
 |
agokli |
Posted: Tue Feb 05, 2002 6:03 am Post subject: |
|
|
Novice
Joined: 04 Jan 2002 Posts: 12
|
|
Back to top |
|
 |
agokli |
Posted: Tue Feb 05, 2002 6:04 am Post subject: |
|
|
Novice
Joined: 04 Jan 2002 Posts: 12
|
Thanks for assistance.
I have resolved he issue. Problem was related to CLASSPATH settings.
|
|
Back to top |
|
 |
|