dcsimg
j2ee application client cannot access jms api in wsad 5.0
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, March 4, 2003 01:50 AM

Hi. I am not being able to run a j2ee client application that publishes and subscibes jms messages in Websphere Studio Application Developer 5.0.I am trying to use Internal JMS provider. The Exception that I am getting is-- javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'WAS_localhost_server1' at com.ibm.mq.jms.MQTopicConnection. (MQTopicConnection.java:115) at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTopicConnectionFactory.java:343) at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopicConnectionFactory.java:226) at java.lang.Thre   More>>

Hi.

I am not being able to run a j2ee client
application that publishes and subscibes jms messages
in Websphere Studio Application Developer 5.0.I am
trying to use Internal JMS provider.




The Exception that I am getting is--




javax.jms.JMSException: MQJMS2005: failed to create
MQQueueManager for 'WAS_localhost_server1'
at
com.ibm.mq.jms.MQTopicConnection. (MQTopicConnection.java:115)
at
com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTopicConnectionFactory.java:343)
at
com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopicConnectionFactory.java:226)
at java.lang.Thread.run(Thread.java:514)




If I put the jars that come with IBM MQ
namely com.ibm.mq.jar and com.ibm.mqjms.jar in the
classpath of the client application I get the above
Exception.





If I remove these jars from the classpath of the
client application then I get the following Exception





com.ibm.websphere.naming.CannotInstantiateObjectException:
Exception occurred while the JNDI NamingManager was
processing a javax.naming.Reference object. Root
exception is java.lang.Exception: De-reference of JMS
provider's Reference failed - check provider is on
classpath
at
com.ibm.ejs.jms.JMSConnectionFactoryFactory.getObjectInstance(JMSConnectionFactoryFactory.java:89)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
at
com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
at
com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1674)
at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1537)
at
com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457)
at
com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167)
at
com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at
javax.naming.InitialContext.lookup(InitialContext.java:359)
at com.test.TestAppClient.main(TestAppClient.java:23)
at java.lang.reflect.Method.invoke(Native Method)
at
com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
at
com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at
com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)


Thanks,

Rajesh

   <<Less

Re: j2ee application client cannot access jms api in wsad 5.0

Posted By:   Anonymous  
Posted On:   Monday, March 24, 2003 06:28 PM

hi this is simple problem, please set the classpath for like this,


set MQ_JAVA_PATH=C:Program FilesibmWebSphere MQJava

set PATH=%PATH%;c:winntsystem32;c:winntsystem;c:WebSphereAppServerjavain;

set classpath=%classpath%;.;c:waswebsphereappserverlibj2ee.jar;
set classpath=%classpath%;.;c:waswebsphereappserverlib
amingclient.jar;
set classpath=%classpath%;.;c:waswebsphereappserverlib
amingserver.jar;
set classpath=%classpath%;.;c:waswebsphereappserverlibsoap.jar;
set classpath=%classpath%;.;c:waswebsphereappserverlibiwsorb.jar;


set classpath=%classpath%;.;%MQ_JAVA_PATH%libldap.jar;
set classpath=%classpath%;.;%MQ_JAVA_PATH%libcom.ibm.mq.jar;
set classpath=%classpath%;.;%MQ_JAVA_PATH%libcom.ibm.mqjms.jar;
set classpath=%classpath%;.;%MQ_JAVA_PATH%libconnector.jar;
set classpath=%classpath%;.;%MQ_JAVA_PATH%libjms.jar;
set classpath=%classpath%;.;%MQ_JAVA_PATH%libjndi.jar;
set classpath=%classpath%;.;%MQ_JAVA_PATH%libjta.jar;
set classpath=%classpath%;.;%MQ_JAVA_PATH%libproviderutil.jar;



then remove the sun jdk classpath from system , and also environment variables
this is problem of sun jdk and websphere jdk, please set the classpath as well as path for websphere 5.0

all the best

regds

hellomrsenthil(at)yahoo.com

(if you need more details cantact me)

Re: j2ee application client cannot access jms api in wsad 5.0

Posted By:   Anonymous  
Posted On:   Monday, March 24, 2003 02:12 AM

hi friend

how are u, did u find any solution for this

i am also suffering this problem could you help me

thanks in advance

regds

senthil kumar
About | Sitemap | Contact