Author |
Message
|
pravinaxe |
Posted: Thu Jan 29, 2009 6:41 am Post subject: java.lang.NoClassDefFoundError: com/ibm/mq/MQException. |
|
|
Newbie
Joined: 29 Jan 2009 Posts: 5
|
Hi
I am able to read messages from MQ from my Weblogic JPD using MQ Series Control. But when I use MQ Series Event generator in wli console to generate an event on every new messages in MQ, its not working. I can see the following error message on the Weblogic server Console
Code: |
key already present :MQGen29
<Jan 29, 2009 2:09:23 PM GMT+05:30> <Warning> <EJB> <BEA-010065> <MessageDrivenB
ean threw an Exception in onMessage(). The exception was:
java.lang.NoClassDefFoundError: com/ibm/mq/MQException.
java.lang.NoClassDefFoundError: com/ibm/mq/MQException
at com.bea.wli.mbconnector.mqseries.MQConnMDB.checkForMessages(Unknown S
ource)
at com.bea.wli.mbconnector.mqseries.MQConnMDB.poll(Unknown Source)
at com.bea.wli.mbconnector.framework.XConnMDB.onMessage(Unknown Source)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:400)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.
java:333)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:298)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2686)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183) |
Here MQGen29 is my Event generator name. I been sitting with this error for a week. Please anyone come forward to solve this. I appreciate all the replies..
Regards
Pravin |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 29, 2009 6:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
pravinaxe |
Posted: Thu Jan 29, 2009 10:51 pm Post subject: |
|
|
Newbie
Joined: 29 Jan 2009 Posts: 5
|
Hi
I have solved that problem. Any one with the same problem can follow the below.
Just go to "bea_home\weblogic81\samples\domains\integration\ setDomainEnv.cmd" and add the path of the jars to PRE_CLASSPATH variable.
Regards
Pravin |
|
Back to top |
|
 |
Saravan146 |
Posted: Tue Jul 07, 2009 5:55 pm Post subject: java.lang.NoClassDefFoundError: com/ibm/mq/MQException. |
|
|
Newbie
Joined: 07 Jul 2009 Posts: 5
|
Hi,
I am also getting same error. java.lang.NoClassDefFoundError: com/ibm/mq/MQException.
Installed MQ 5.2 in Solaris 10. while running sample Java program geting following error.
# pwd
/opt/mqm/java/samples/En_US
# java MQIVP
MQSeries for Java Installation Verification Program
5639-B43 (C) Copyright IBM Corp. 1997, 1998. All Rights Reserved.
===========================================================
Please enter the type of connection (MQSeries or VisiBroker) : (MQSeries)
Please enter the IP address of the MQSeries server :172.17.103.5
Please enter the port to connect to : (1414)
Please enter the server connection channel name :FO_TO_GW
Please enter the queue manager name :FO_MGR01
MQJE020: CCSID not supported by queue manager
MQJE001: Completion Code 2, Reason 2195
Failure: Attempt to connect to queue manager failed.
Reason: MQ Reason code 2195
Action: Consult MQSeries Application Programming Reference for explanation.
# |
|
Back to top |
|
 |
manicminer |
Posted: Wed Jul 08, 2009 12:48 am Post subject: Re: java.lang.NoClassDefFoundError: com/ibm/mq/MQException. |
|
|
 Disciple
Joined: 11 Jul 2007 Posts: 177
|
Saravan146 wrote: |
Hi,
I am also getting same error. java.lang.NoClassDefFoundError: com/ibm/mq/MQException.
Installed MQ 5.2 in Solaris 10. while running sample Java program geting following error.
|
Don't install 5.2 it is WAY out of support and Solaris 10 would not be a supported platform.
You need to move to at least MQ 6. _________________ Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 08, 2009 1:05 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
|