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 » Applet and MQseries.... ???

Post new topic  Reply to topic
 Applet and MQseries.... ??? « View previous topic :: View next topic » 
Author Message
Neeraja
PostPosted: Mon Dec 10, 2001 5:28 am    Post subject: Reply with quote

Newbie

Joined: 06 Dec 2001
Posts: 4

I made one terminal as a Client(Installed MA88 on it and installed MQseries server as well) and other one as MQSeries server (installed MQseries server).
Next i started my server and listener stuff..
and when i compiled my applet class , It got compiled successfully but when i tried to run this on a Appletviewer , it gave me the following error...

java.lang.NoClassDefFoundError: com/ibm/mq/MQException
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:254)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:508)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:444)
at sun.applet.AppletPanel.run(AppletPanel.java(Compiled Code))
at java.lang.Thread.run(Thread.java:481)

I tried giving the Archive tag ,setting the classpath on runtime too.. But it is not working...
The error it shows for a class is already in my System's classpath...

Any Clue...
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolban
PostPosted: Mon Dec 10, 2001 7:41 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

I believe that an Applet ignores the system CLASSPATH and obtains its classes from the directory on the HTTP Server where the applet was loaded from. Take the com.ibm.mq.jar file and unzip into the same directory where your applet is found. It should create the com/ibm/mq/*.class files. Retry the solution and let us know what happens.
Back to top
View user's profile Send private message
middlewareonline
PostPosted: Mon Dec 24, 2001 11:18 am    Post subject: Reply with quote

Acolyte

Joined: 09 Jul 2001
Posts: 73

You only need the applet and the com.ibm on the server. Use a browser and the html will download your [page plus applet plus the jars it need to run the applet. You do not need the jar's installed on your client (means you don't need in you classpath either on the client).

MiddlewareOnline.com

_________________
---------------------------------------------
IBM & SUN (J2EE) Certified Consultants,
http://www.MiddlewareOnline.com
A "SARVAM" Online Portal
http://www.SARVAM.com
---------------------------------------------
Back to top
View user's profile Send private message Visit poster's website
c6023
PostPosted: Sun Dec 30, 2001 9:27 pm    Post subject: Reply with quote

Newbie

Joined: 29 Dec 2001
Posts: 5

I have a similar problem.

The "MQSeries Java Classes" software provides an applet and an application to run and verify the installation.

After building the "MQSeries Java Classes" environment I am able to successfully run the Verification application (java MQIVP) by running it on the client machine.

But, when I try to run the Verification applet using the appletviewer (appletviewer mqjavac.html) I am getting the following error message: "The class loader is unable to load the message catalog."


I also run it using the Netscape Browser 4.7 by invoking the applet locally (not from the Web Server). Same error.

And the Netscape Java console indicates a specific file:
mqjeivp.property.

The file is there and the directory is in the CLASSPAT (which Netscape most likely ignores) but the appletviewer should use.

I also put the whole directory structure on the Web Server and run the applet from the server. The same error.

Then I created the Jar file and included all files in it. Run the html pointing to the jar file from the server. Same error.


Interestingly, this verification applet calls the MQTest.class.

I took the class file and built a new applet based on it by using JBuilder. And under JBuilder it runs successfully.

So, how to make this message catalog visible to the loader when running as an applet? locally?

Thanks for your help.





[ This Message was edited by: c6023 on 2001-12-30 21:28 ]

[ This Message was edited by: c6023 on 2001-12-31 10:31 ]
Back to top
View user's profile Send private message Send e-mail
maheswarank
PostPosted: Wed Jan 23, 2002 4:57 am    Post subject: Reply with quote

Newbie

Joined: 21 Jan 2002
Posts: 6

hi there,
I had this problem initially, i usually set the classpath in dos and when compiled the applet compiles with out an error but when u try to run it, it check for the .jar file in the pathof the system CLASSPATH variable which can be set in the
system properties - > environment -> system variables

even though i was able to run it with out any error , i get an error when i try to put a message to a remote q.

Back to top
View user's profile Send private message
shogan
PostPosted: Tue Sep 03, 2002 8:35 am    Post subject: Reply with quote

Novice

Joined: 09 May 2002
Posts: 15

I get the same problem under Netscape, though it works under appletviewer. My code puts to queue. Response is :

Unable to load message catalog - mqji

An MQ error occurred : Completion code 2 Reason code 2059


My path is set up to include "C:\Program Files\MQSeries\Java\lib"

Also why does IE open up HTML as Word doc ?
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 » Applet and MQseries.... ???
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.