• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI lookup from a standalone JMS client - WAS 7 - AIX

 
Murugesan Narayanasamy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I run a java client which is trying to get a MQ connection by looking the JNDI in WebSphere 7 in AIX, I am getting the below error.
Please let me know if anyone knows solution for this issue.


ERROR - [2011-11-15 16:29:25,791] - [P=763570:O=0:CT] - [com.scb.sts.downstream.sender.ScheduledMessageSender.sendMessage(Unknown Source)] : - ChqBatch, 0 -
Exception thrown com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Ref
erence object. [Root exception is com.ibm.ws.exception.WsRuntimeException: java.lang.ClassNotFoundException: com.ibm.ws.wmqra.helper.WMQRAClientUtilsImpl] - M
essage = Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.
ERROR - [2011-11-15 16:29:25,791] - [P=763570:O=0:CT] - [com.scb.sts.downstream.sender.ScheduledMessageSender.sendRecords(Unknown Source)] : Exception thrown
com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [R
oot exception is com.ibm.ws.exception.WsRuntimeException: java.lang.ClassNotFoundException: com.ibm.ws.wmqra.helper.WMQRAClientUtilsImpl] - Message = Exceptio
n occurred while the JNDI NamingManager was processing a javax.naming.Reference object.
DEBUG - [2011-11-15 16:29:25,793] - [P=763570:O=0:CT] - [com.scb.sts.downstream.batch.EnQueueScheduledEvents.main(Unknown Source)] : Exception thrown in main
method -com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference ob
ject. [Root exception is com.ibm.ws.exception.WsRuntimeException: java.lang.ClassNotFoundException: com.ibm.ws.wmqra.helper.WMQRAClientUtilsImpl]
com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Ro
ot exception is com.ibm.ws.exception.WsRuntimeException: java.lang.ClassNotFoundException: com.ibm.ws.wmqra.helper.WMQRAClientUtilsImpl]
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:1014)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:723)
at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:3673)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1843)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1748)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1499)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:636)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:165)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.scb.sts.downstream.sender.ScheduledMessageSender.sendMessage(Unknown Source)
at com.scb.sts.downstream.sender.ScheduledMessageSender.sendRecords(Unknown Source)
at com.scb.sts.downstream.batch.EnQueueScheduledEvents.main(Unknown Source)
Caused by:
com.ibm.ws.exception.WsRuntimeException: java.lang.ClassNotFoundException: com.ibm.ws.wmqra.helper.WMQRAClientUtilsImpl
at com.ibm.ejs.jms.mq.ra.WMQRAClientUtils.getInstance(WMQRAClientUtils.java:90)
at com.ibm.ejs.jms.JMSConnectionFactoryFactory.getObjectInstance(JMSConnectionFactoryFactory.java:182)
at javax.naming.spi.NamingManager.getObjectInstanceByFactoryInReference(Unknown Source)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:920)
... 12 more
Caused by:
java.lang.ClassNotFoundException: com.ibm.ws.wmqra.helper.WMQRAClientUtilsImpl
at java.lang.Class.forName(Class.java:169)
at com.ibm.ejs.jms.mq.ra.WMQRAClientUtils.<clinit>(WMQRAClientUtils.java:61)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
... 16 more
 
Murugesan Narayanasamy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have solved the issue by setting the below path jar files in the classpath,

$WAS_HOME/profiles/AppSrv01/installedConnectors/*.jar
$WAS_HOME/plugins/com.ibm.ws.sib.server.jar
$WAS_HOME/plugins/com.ibm.ws.runtime.jar
$WAS_HOME/runtimes/*.jar


Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic