• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

WAS5.1 -Classpath Problem

Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers ,

Awe are using WAS5.1 .We have created one MDB and from that MDB we are calling the webservice.(We are just Webservice Client).

After server Started ,If we put the message into the queue ,we are getting the following error MDB has picked up the message and tryign to call the web service)

[9/30/08 18:36:48:047 GMT-08:00] 77b0b83b ExceptionUtil E CNTR0020E: Non-application exception occurred while processing method "onMessage" on bean "BeanId(DownStream#downstream.jar#FXMarkDownEventHandler, null)". Exception data: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:373)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912)
Caused by: java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr
at com.ibm.ws.webservices.engine.client.Service.<clinit>(Service.java:163)
at com.scb.sts.downstream.sender.OPICSWSMDSender.sendRecords(Unknown Source)
at com.scb.sts.downstream.batch.BatchModeExtractor.handle(Unknown Source)
at com.scb.sts.downstream.eventhandler.FXMarkDownEventHandler.handleEvent(FXMarkDownEventHandler.java:66)
at com.scb.sts.downstream.eventhandler.EventHandlerBean.onMessage(EventHandlerBean.java:65)
at com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnMessage.run(MDBWrapper.java:208)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage(MDBWrapper.java:197)
at com.ibm.ejs.jms.listener.MDBWrapper.onMessage(MDBWrapper.java:175)
at com.ibm.mq.jms.MQSession.run(MQSession.java:1593)
at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHandle.java:924)
at com.ibm.ejs.jms.listener.ServerSession.connectionConsumerOnMessage(ServerSession.java:740)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:525)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:492)
... 10 more

I have added the webservices.jar ,qname .jar,wsdl4j.jar to the Server Classpath in websphere admin console.

ras.jar is in the /usr/was51/AppServer/lib . But it is not taking these files from appserver/lib.

Anybody please help me to resolve the issue.

Posts: 3285
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

It appears to be complaining that it can't find com.ibm.ejs.ras.Tr on the CLASSPATH. Which JAR does this class live in? Is that JAR on the CLASSPATH?
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tr.class is part of ras.jar. Can you try troubleshooting the class loader through admin console. Try to find out the path from the jar files are loaded.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic