Author |
Message
|
binnyms |
Posted: Wed Mar 17, 2004 11:08 pm Post subject: Problem reading queue from executable jar |
|
|
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 |
|
 |
EddieA |
Posted: Thu Mar 18, 2004 7:40 am Post subject: |
|
|
 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 |
|
 |
binnyms |
Posted: Fri Mar 19, 2004 1:01 am Post subject: |
|
|
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 |
|
 |
EddieA |
Posted: Fri Mar 19, 2004 7:08 am Post subject: |
|
|
 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 |
|
 |
binnyms |
Posted: Fri Mar 19, 2004 10:33 pm Post subject: |
|
|
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 |
|
 |
|