Author |
Message
|
amoljoshi28 |
Posted: Wed Jun 10, 2009 1:52 pm Post subject: Error while executingJMSAdminGUI: No class definition found |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
I am using WebSphere MQ 7.0 with the latest fix pack 7.0.0.2 on Windows XP SP2. I also have RAD 7.0 and have downloaded the latest packs ms0b.zip, ms0n.zip and me01.zip.
As mentioned in this article: ( please see the next message for link) i have created a queue manager.
And have followed the steps to "create the administered objects". In that i did n`t understand what to give as VM Arguments because the file system for RAD 7.0 is bit different than that is for 6.0 ( which is used in that article. ).
I gave the path which points to the 3 jar files and the <WebSphereMQ7.0_ParentFolder>\Java\lib. And tried running the JMSAdminGUI.class file in rad.
I`m getting an error saying: "The java class is not found: Files\IBM\Websphere".
After that i tried running the jmsadmingui.bat while by changing the cur and mqj variables. While executing i got this exception:
"
C:\Program Files\IBM\MQTools>JMSADMINGUI
JMS Administrator (GUI) - Version 1.4 RC4 for WebSphere MQ.
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/jms/servic
es/Trace
at com.ibm.mq.jms.admin.JMSAdminGUI.processArgs(JMSAdminGUI.java:4319)
at com.ibm.mq.jms.admin.JMSAdminGUI.main(JMSAdminGUI.java:4185)
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.jms.services.Trace
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 2 more
"
I have tried searching for this error here in developerworks. But did n`t get any help.
Hope i`ll get some help to run that jmsadmingui.class/ jmsadmingui.bat file.
Hope to see a reply soon.
Thanks a lot.
P.S: I only tried installing the Fix Pack ( dated 11 May 2009. ) after i fed up with the same error screen. I have actually downloaded the IBM MQ 7.0 two weeks ago.
Last edited by amoljoshi28 on Wed Jun 10, 2009 2:04 pm; edited 1 time in total |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Wed Jun 10, 2009 1:54 pm Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
I`m a total newbie in this websphere mq world.. (
Only started using it by reading the some of the articles on ibm.
Please reply so that i can start using the websphere mq 7.0.. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 10, 2009 7:50 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
If you are using MQ V7 you should be using the MQExplorer as a GUI to admin JMS.
Have fun.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Wed Jun 10, 2009 10:39 pm Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
fjb_saper wrote: |
If you are using MQ V7 you should be using the MQExplorer as a GUI to admin JMS.
Have fun.  |
Link of the article that i was mentioning was :
http://www.ibm.com/developerworks/edu/i-dw-i-mqrad1.html
Can anybody tell me a link where i can find about how to go about thing with Websphere MQ 7.0 and JMS? |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Wed Jun 10, 2009 11:14 pm Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
What does this mean?
"Caused by: java.lang.ClassNotFoundException: com.ibm.mq.jms.services.Trace" |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Wed Jun 10, 2009 11:43 pm Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
amoljoshi28 wrote: |
What does this mean?
"Caused by: java.lang.ClassNotFoundException: com.ibm.mq.jms.services.Trace" |
Now it`s giving me an error called:
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries
( |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Thu Jun 11, 2009 12:03 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
amoljoshi28 wrote: |
What does this mean?
"Caused by: java.lang.ClassNotFoundException: com.ibm.mq.jms.services.Trace" |
It means the class: com.ibm.mq.jms.services.Trace was not found. This is normally caused by not having the correct jar on your classpath.
But as fjb_saper says, why dont you try MQExplorer? |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Thu Jun 11, 2009 1:10 am Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
WMBDEV1 wrote: |
amoljoshi28 wrote: |
What does this mean?
"Caused by: java.lang.ClassNotFoundException: com.ibm.mq.jms.services.Trace" |
It means the class: com.ibm.mq.jms.services.Trace was not found. This is normally caused by not having the correct jar on your classpath.
But as fjb_saper says, why dont you try MQExplorer? |
Because i have no idea about how to use it..
As i told earlier i`m total newbie. Just following whatever written in this article: http://www.ibm.com/developerworks/edu/i-dw-i-mqrad1.html
How irritating this error would!
I`m running the class file called: C:\Program Files\IBM\MQTools\jmsadmingui\com\ibm\mq\jms\admin\JMSAdminGUI.class by setting the class path properly.
Look what error i get:
"
C:\Program Files\IBM\MQTools\jmsadmingui\com\ibm\mq\jms\admin>set classpath=C:\P
rogram Files\Java\jre1.6.0_04\bin;C:\Program Files\IBM\MQTools;C:\Program Files\
IBM\WebSphere MQ\java\lib
C:\Program Files\IBM\MQTools\jmsadmingui\com\ibm\mq\jms\admin>dir
Volume in drive C has no label.
Volume Serial Number is 1440-D5BF
Directory of C:\Program Files\IBM\MQTools\jmsadmingui\com\ibm\mq\jms\admin
06/11/2009 02:33 PM <DIR> .
06/11/2009 02:33 PM <DIR> ..
07/13/2000 12:17 AM 123 adminObj.gif
11/25/2004 11:19 AM 8,099 AdminServicePlus.class
11/25/2004 11:19 AM 1,544 AuthenticationDialog$1.class
11/25/2004 11:19 AM 1,133 AuthenticationDialog$2.class
11/25/2004 11:19 AM 1,224 AuthenticationDialog$3.class
11/25/2004 11:19 AM 3,922 AuthenticationDialog.class
11/25/2004 11:19 AM 662 AuthWrapper.class
07/13/2000 12:07 AM 112 closedFolder.gif
11/25/2004 11:19 AM 5,172 ConfigFile.class
11/25/2004 11:19 AM 991 ContextTreeRenderer.class
11/25/2004 11:19 AM 1,020 ContextWrapper.class
11/25/2004 11:19 AM 1,435 DisplayOptionsDialog$1.class
11/25/2004 11:19 AM 1,635 DisplayOptionsDialog$2.class
11/25/2004 11:19 AM 3,092 DisplayOptionsDialog$3.class
11/25/2004 11:19 AM 1,037 DisplayOptionsDialog$4.class
11/25/2004 11:19 AM 1,187 DisplayOptionsDialog$5.class
11/25/2004 11:19 AM 8,482 DisplayOptionsDialog.class
11/25/2004 11:19 AM 1,592 EnumProperty.class
11/25/2004 11:19 AM 918 ExceptionDialog$1.class
11/25/2004 11:19 AM 3,949 ExceptionDialog.class
07/13/2000 01:16 AM 111 fileObj.gif
11/25/2004 11:19 AM 580 GUIClipboard.class
11/25/2004 11:19 AM 695 GUITreeModel.class
06/11/2009 02:33 PM <DIR> help
07/13/2000 12:25 AM 89 icon.gif
11/25/2004 11:19 AM 1,175 JMSAdminFileFilter.class
11/25/2004 11:43 AM 901 JMSAdminGUI$1.class
11/25/2004 11:43 AM 1,041 JMSAdminGUI$2.class
11/25/2004 11:43 AM 69,365 JMSAdminGUI.class
11/25/2004 11:19 AM 2,743 JMSAdminGUIDialog.class
11/25/2004 11:19 AM 394 JMSAdminGUIException.class
11/25/2004 11:19 AM 1,718 JMSAdminGUIHelpDialog$1.class
11/25/2004 11:19 AM 996 JMSAdminGUIHelpDialog$2.class
11/25/2004 11:19 AM 1,594 JMSAdminGUIHelpDialog$3.class
11/25/2004 11:19 AM 7,264 JMSAdminGUIHelpDialog.class
11/25/2004 11:19 AM 655 JNDIConfigDialog$1.class
11/25/2004 11:19 AM 1,595 JNDIConfigDialog$2.class
11/25/2004 11:19 AM 2,707 JNDIConfigDialog$3.class
11/25/2004 11:19 AM 1,005 JNDIConfigDialog$4.class
11/25/2004 11:19 AM 1,158 JNDIConfigDialog$5.class
11/25/2004 11:19 AM 9,210 JNDIConfigDialog.class
11/25/2004 11:19 AM 1,405 LeftAlignHeaderRenderer.class
11/25/2004 11:19 AM 2,806 ObjectRowRenderer.class
11/25/2004 11:19 AM 5,518 ObjectTableModel.class
07/13/2000 12:08 AM 120 openFolder.gif
07/13/2000 12:24 AM 112 otherObj.gif
11/25/2004 11:19 AM 660 ProgressIndicator$1.class
11/25/2004 11:19 AM 2,874 ProgressIndicator.class
11/25/2004 11:19 AM 1,662 Property.class
11/25/2004 11:19 AM 1,625 PropertyEditorDialog$1.class
11/25/2004 11:19 AM 1,183 PropertyEditorDialog$2.class
11/25/2004 11:19 AM 996 PropertyEditorDialog$3.class
11/25/2004 11:19 AM 1,820 PropertyEditorDialog$4.class
11/25/2004 11:19 AM 3,039 PropertyEditorDialog$5.class
11/25/2004 11:19 AM 12,445 PropertyEditorDialog.class
11/25/2004 11:19 AM 1,369 PropertyTemplate.class
11/25/2004 11:19 AM 19,049 PropertyTemplateBundle.class
07/13/2000 12:36 AM 120 q.gif
07/13/2000 12:36 AM 123 qcf.gif
11/25/2004 11:19 AM 3,346 QM2RepSyncDialog$1.class
11/25/2004 11:19 AM 1,006 QM2RepSyncDialog$2.class
11/25/2004 11:19 AM 1,159 QM2RepSyncDialog$3.class
11/25/2004 11:19 AM 12,674 QM2RepSyncDialog.class
11/25/2004 11:19 AM 766 QMObjectWrapper.class
11/25/2004 11:19 AM 2,001 Rep2QMSyncDialog$1.class
11/25/2004 11:19 AM 1,006 Rep2QMSyncDialog$2.class
11/25/2004 11:19 AM 1,157 Rep2QMSyncDialog$3.class
11/25/2004 11:19 AM 15,192 Rep2QMSyncDialog.class
11/25/2004 11:19 AM 2,606 Rep2RepSyncDialog$1.class
11/25/2004 11:19 AM 2,128 Rep2RepSyncDialog$2.class
11/25/2004 11:19 AM 1,011 Rep2RepSyncDialog$3.class
11/25/2004 11:19 AM 1,162 Rep2RepSyncDialog$4.class
11/25/2004 11:19 AM 11,786 Rep2RepSyncDialog.class
11/25/2004 11:19 AM 968 SimpleProperty.class
11/25/2004 11:19 AM 4,319 SpringUtilities.class
11/25/2004 11:19 AM 665 SyncProgressDialog$1.class
11/25/2004 11:19 AM 768 SyncProgressDialog$2.class
11/25/2004 11:19 AM 4,832 SyncProgressDialog.class
07/13/2000 12:36 AM 120 t.gif
07/13/2000 12:36 AM 123 tcf.gif
11/25/2004 11:19 AM 1,246 WelcomeDialog$1.class
11/25/2004 11:19 AM 1,773 WelcomeDialog$2.class
11/25/2004 11:19 AM 1,657 WelcomeDialog$3.class
11/25/2004 11:19 AM 959 WelcomeDialog$4.class
11/25/2004 11:19 AM 1,140 WelcomeDialog$5.class
11/25/2004 11:19 AM 6,032 WelcomeDialog.class
09/10/2000 11:25 PM 152 xaqcf.gif
09/10/2000 11:25 PM 152 xatcf.gif
87 File(s) 291,157 bytes
3 Dir(s) 41,162,043,392 bytes free
C:\Program Files\IBM\MQTools\jmsadmingui\com\ibm\mq\jms\admin>java JMSAdminGUI
Exception in thread "main" java.lang.NoClassDefFoundError: JMSAdminGUI
Caused by: java.lang.ClassNotFoundException: JMSAdminGUI
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: JMSAdminGUI. Program will exit.
C:\Program Files\IBM\MQTools\jmsadmingui\com\ibm\mq\jms\admin>
"
As you can see there`s the jmsadmingui.class file present in that directory. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 11, 2009 1:32 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
That was written for v6 - you're using v7. Times have changed. Use MQExplorer's facilities, and the documentation in the v7 InfoCentre. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Thu Jun 11, 2009 1:56 am Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
Vitor wrote: |
That was written for v6 - you're using v7. Times have changed. Use MQExplorer's facilities, and the documentation in the v7 InfoCentre. |
Okay.
Lemme try that one too..  |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Thu Jun 11, 2009 6:21 am Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
amoljoshi28 wrote: |
Vitor wrote: |
That was written for v6 - you're using v7. Times have changed. Use MQExplorer's facilities, and the documentation in the v7 InfoCentre. |
Okay.
Lemme try that one too..  |
can somebody tell me what to set as the -Dsun.boot.library.path= ?
I`m continuously getting an error while running the program..
Right now i`m setting it to be equal to:
-Dsun.boot.library.path=C:\Program Files\IBM\SDP70\jdk\jre\bin;C:\Program Files\IBM\WebSphere MQ\java\lib
Error says: The java class is not found: Files\IBM\SDP70\jdk\jre\bin;C:\Program
 |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 11, 2009 6:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
amoljoshi28 wrote: |
I`m continuously getting an error while running the program..
|
What program? The GUI? MQExplorer?
If it's Explorer, is it the downloaded support pac or the one from the server install?
How was the install performed (in either case)? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jun 11, 2009 6:52 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Your -D paths need either quotes or shortforms. |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Thu Jun 11, 2009 7:14 am Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
mqjeff wrote: |
Your -D paths need either quotes or shortforms. |
Well got that problem sorted out..Successfully created Administered object and successfully solved VM Arguments part too..
Now one more error!
Exception: javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager Ender [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.]
This happens when my program tries to connect with the Queue Manager..  |
|
Back to top |
|
 |
amoljoshi28 |
Posted: Thu Jun 11, 2009 7:17 am Post subject: |
|
|
Novice
Joined: 10 Jun 2009 Posts: 24
|
mqjeff wrote: |
Your -D paths need either quotes or shortforms. |
Well, i solved this by deleting the spaces between Program Files and WebSphere MQ in the path written..
So You Should Not Use and Spaces other than one used between the Arguments ( for seperation )..
Lesson Well Learned!  |
|
Back to top |
|
 |
|