File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes JNDI lookup from a standalone JMS client - WAS 7 - AIX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "JNDI lookup from a standalone JMS client - WAS 7 - AIX" Watch "JNDI lookup from a standalone JMS client - WAS 7 - AIX" New topic
Author

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

Murugesan Narayanasamy
Greenhorn

Joined: May 01, 2007
Posts: 8
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

Murugesh,<br />Thanks.
Murugesan Narayanasamy
Greenhorn

Joined: May 01, 2007
Posts: 8
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI lookup from a standalone JMS client - WAS 7 - AIX
 
Similar Threads
Urgent...not able to get data source
ClassNotFound
J2CXAResource E J2CA0036E: Error in WSAD v5.0
problem in deploying EJB on WAS
Incompatible resource adapter