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 » Problem reading queue from executable jar

Post new topic  Reply to topic
 Problem reading queue from executable jar « View previous topic :: View next topic » 
Author Message
binnyms
PostPosted: Wed Mar 17, 2004 11:08 pm    Post subject: Problem reading queue from executable jar Reply with quote

Novice

Joined: 09 Jan 2004
Posts: 11

I am writing a program to browse an MQSeries queue, write it to a database and then remove from the queue. When i use it as n individual program it is working fine. when i make it an executable jar even though it is browsing and reading, it is giving
"Unable to load message catalog - mqji" error
I hav added al the required jar files in the classpath of the jar (manifest.mf)
also i have added the directory where the properties files are located in the classpath

what could be the problem
thanks in advance
Binny
Back to top
View user's profile Send private message
EddieA
PostPosted: Thu Mar 18, 2004 7:40 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
i have added the directory where the properties files are located in the classpath

Try adding it to the path as well.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
binnyms
PostPosted: Fri Mar 19, 2004 1:01 am    Post subject: Reply with quote

Novice

Joined: 09 Jan 2004
Posts: 11

I tried adding the directory to the path also. I found that
"MQException.log = null; "
statement which i used to avoid the error messages in the console is causing the error
but don't know how to avoid it
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Mar 19, 2004 7:08 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Strange. Using MQException.log = null 'should' stop it even trying to load the properties.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
binnyms
PostPosted: Fri Mar 19, 2004 10:33 pm    Post subject: Reply with quote

Novice

Joined: 09 Jan 2004
Posts: 11

thanq guys for your responses. Earlier I tried with some System.out.println and I found that the error was is
"MQException.log = null; " statement
but even when i commented this statement, the same error was coming
At last I found out the error
in the manifest.mf file of the executable jar i added a / with the directory where the .properties files are located
eg I changed /user/mq/lib to /user/mq/lib/

Binny
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 » Problem reading queue from executable jar
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.