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 » java.lang.NoClassDefFoundError: com/ibm/mq/MQException.

Post new topic  Reply to topic
 java.lang.NoClassDefFoundError: com/ibm/mq/MQException. « View previous topic :: View next topic » 
Author Message
pravinaxe
PostPosted: Thu Jan 29, 2009 6:41 am    Post subject: java.lang.NoClassDefFoundError: com/ibm/mq/MQException. Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Jan 29, 2009 6:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Is this another way of asking this:

http://www.mqseries.net/phpBB2/viewtopic.php?p=237131


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
pravinaxe
PostPosted: Thu Jan 29, 2009 10:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Saravan146
PostPosted: Tue Jul 07, 2009 5:55 pm    Post subject: java.lang.NoClassDefFoundError: com/ibm/mq/MQException. Reply with quote

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
View user's profile Send private message
manicminer
PostPosted: Wed Jul 08, 2009 12:48 am    Post subject: Re: java.lang.NoClassDefFoundError: com/ibm/mq/MQException. Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jul 08, 2009 1:05 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

It's also rude to double post!

http://www.mqseries.net/phpBB2/viewtopic.php?p=252859#252859
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » java.lang.NoClassDefFoundError: com/ibm/mq/MQException.
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.