|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java Plugin Node CLASSPATH |
« View previous topic :: View next topic » |
Author |
Message
|
coreyb |
Posted: Thu Jun 09, 2005 10:30 pm Post subject: Java Plugin Node CLASSPATH |
|
|
Newbie
Joined: 27 Jul 2004 Posts: 3 Location: Sydney, Australia
|
Hi All,
I've written a custom JAVA plugin for WBI MB v5 (CSD 5) but it seems to have issues finding a needed Xerces class. Basically I'm useing the Base64 class to encode the raw message and send it off to another queue for tracing.
Now the xerces.jar is included in the classes directory of the Broker, and is installed in the broker by default (That's why I used it) Now looking at as much documentation as I can I came to the opinion that all the jar's in the classes directory should be included in the classpath of any running node so everything should work. Problem is it doesn't. I have to manually add D:\Program Files\IBM\WebSphere Business Integration Message Brokers\classes\xerces.jar into the classpath and restart the broker for it to find it.
In contrast I have a basic PCF Custom node that allows a message flow to execute some PCF commands and uses the com.ibm.mq.pcf.jar classes to do this. This isn't included by default in a Broker install, so I copied it into the classes directory and for some reason it does pick it up and work. No need to manually set the classpath as I needed for the xerces classes.
My classpath is as follows:
CLASSPATH=C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;.;D:\Program Files\SQLLIB\java\db2java.zip;D:\Program Files\SQLLIB\java\runtime.zip;D:\Program Files\SQLLIB\bin;D:\Program Files\IBM\WebSphere Business Integration Message Brokers\classes\xerces.jar
As you can see I've included xerces.jar but not com.ibm.mq.pcf.jar yet both nodes are Working, and only the trace node that requires xerces fails if I remove it from the CLASSPATH.
Does anyone have an idea about what is going on? What have I missed or is there some way of setting the CLASSPATH specifically in the broker config to also include xerces.jar? |
|
Back to top |
|
 |
chenulu |
Posted: Fri Jun 10, 2005 8:27 am Post subject: |
|
|
Voyager
Joined: 27 Mar 2002 Posts: 87 Location: Research Triangle Park, NC
|
Hi Corey,
If you want a class to be found by the broker, then you should specify the jar file in the CLASSPATH. The broker by default reads all the jar files in the jplugin directory but not the ones in the classes directory.
Regards, Chenulu |
|
Back to top |
|
 |
shra_k |
Posted: Tue Jun 14, 2005 7:10 pm Post subject: |
|
|
Apprentice
Joined: 30 Dec 2002 Posts: 37
|
Broker by default loads all the jars in the classes directory. So both xerces and pcf jars should be loaded. You can take a debug trace of the broker startup and see that it loads all the jars in the classes directroy and also from classpath. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|