Author |
Message
|
MSV |
Posted: Fri Dec 08, 2006 2:31 am Post subject: JDBC Connector Startup problem |
|
|
Acolyte
Joined: 11 Apr 2006 Posts: 59
|
I'm working with a JDBC Connector for fetching Oracle data to MessageBroker.The Connector is giving the following errors while starting it.
Quote: |
java.lang.NoClassDefFoundError: com/ibm/mq/jms/MQQueueConnectionFactory at CxCommon.Messaging.jms.IBMMQSeriesFactory.getQueueConnectionFactory(IBMMQSeriesFactory.java:55)
... 18 more
[Type: Trace]
[Mesg: :Can NOT create JMS connection to queue manager -- WBRK6_DEFAULT_QUEUE_MANAGER]
[Type: Error] [MsgID: 9052]
[Mesg: Unable to get a MQ series Queue Manager or Queue Connection.
Reason: failed to create connection --java.lang.reflect.InvocationTargetException.]
Press any key to continue . . . |
I gave all the relevant classpaths in Start_JDBC.bat file.
Even i re-started all the services and tried again.But still, no progress is found.
Anyone guide me with a workaround.. |
|
Back to top |
|
 |
Gaya3 |
Posted: Fri Dec 08, 2006 2:37 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi
Its clearly mentioned that
java.lang.NoClassDefFoundError
so its looking some jar files to function
Thanks and Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 08, 2006 2:46 am Post subject: Re: JDBC Connector Startup problem |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
MSV wrote: |
I gave all the relevant classpaths in Start_JDBC.bat file. |
Not the one with the MQ files in it I suspect....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
MSV |
Posted: Fri Dec 08, 2006 3:06 am Post subject: Re: JDBC Connector Startup problem |
|
|
Acolyte
Joined: 11 Apr 2006 Posts: 59
|
Vitor wrote: |
MSV wrote: |
I gave all the relevant classpaths in Start_JDBC.bat file. |
Not the one with the MQ files in it I suspect....  |
Apart from the default paths, I mentioned the following at JDBCDRIVERPATH and JCLASSES.
C:\oracle\ora92\jdbc\lib\classes12.zip;
C:\IBM\WebSphereAdapters\lib\jms.jar;
C:\IBM\WebSphereAdapters\lib\mqjms.jar;
C:\IBM\WebSphereAdapters\lib\db2java.zip;
C:\IBM\WebSphereAdapters\connectors\JDBC\db2jdbc.dll;
Where can i find MQQueueConnectionFactory class ?
Is there anything else that i'm missing ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Dec 08, 2006 3:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You need com.ibm.mq.jar.
In fact, you need a full MQ installation. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MSV |
Posted: Sun Dec 10, 2006 10:18 pm Post subject: |
|
|
Acolyte
Joined: 11 Apr 2006 Posts: 59
|
jefflowrey wrote: |
You need com.ibm.mq.jar.
In fact, you need a full MQ installation. |
I have added com.ibm.mq.jar as suggested.
As per the information gathered, Reason for my errors/exceptions is as follows:
Quote: |
JMSException thrown at compile time
The com.ibm.mq.jms.MQQueueConnectionFactory and
com.ibm.mq.jms.MQTopicConnectionFactory APIs have changed in WebSphere
MQ Version 6.0: some methods in these classes can now throw exceptions
of type JMSException. JMS applications that were compiled against
earlier versions of the WebSphere MQ classes for JMS will continue to
run successfully but if they are recompiled against the version 6.0
classes compilation errors might result. These errors contain text
similar to the following: "unreported exception javax.jms.JMSException;
must be caught or declared to be thrown" and also reference the
connection factory methods in question. To fix this, you must modify
your applications to handle these exceptions |
Is there any way of getting rid of this problem without going for MQ V6.0.1.1 ? |
|
Back to top |
|
 |
|