• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

calling ejb through standalone client program

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
I have created one EJB that will send messages to websphere MQ.I have deployed that EJB on websphere application server.Now i have to call that EJB through standalone application.But when i run that standalone client program i m getting an exception like


java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException:
>> SERVER (id=226983de, host=indev01) TRACE START:
>> java.rmi.RemoteException: ; nested exception is:
javax.jms.JMSException: Failed to create connection
>> at com.ibm.ejs.jms.JMSCMUtils.mapToJMSException(JMSCMUtils.java:141)
>> at com.ibm.ejs.jms.JMSConnectionFactoryHandle.createConnection(JMSConnectionFactoryHandle.java:254)
>> at com.hi.HelloBean.HelloHi(HelloBean.java:43)
>> at com.hi.EJSRemoteStatelessHelloBean_17deafae.HelloHi(Unknown Source)
>> at com.hi._EJSRemoteStatelessHelloBean_17deafae_Tie.HelloHi(_EJSRemoteStatelessHelloBean_17deafae_Tie.java:159)
>> at com.hi._EJSRemoteStatelessHelloBean_17deafae_Tie._invoke(_EJSRemoteStatelessHelloBean_17deafae_Tie.java:87)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:627)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:480)
>> at com.ibm.rmi.iiop.ORB.process(ORB.java:512)
>> at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
>> at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2719)
>> at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2584)
>> at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
>> at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
>> SERVER (id=226983de, host=indev01) TRACE END.
; nested exception is:
javax.jms.JMSException: Failed to create connection
at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:229)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:84)
at com.hi._Hello_Stub.HelloHi(_Hello_Stub.java:254)
at com.hi.HelloClient.main(HelloClient.java:30)
Caused by: java.rmi.RemoteException:
>> SERVER (id=226983de, host=indev01) TRACE START:
>> java.rmi.RemoteException: ; nested exception is:
javax.jms.JMSException: Failed to create connection
>> at com.ibm.ejs.jms.JMSCMUtils.mapToJMSException(JMSCMUtils.java:141)
>> at com.ibm.ejs.jms.JMSConnectionFactoryHandle.createConnection(JMSConnectionFactoryHandle.java:254)
>> at com.hi.HelloBean.HelloHi(HelloBean.java:43)
>> at com.hi.EJSRemoteStatelessHelloBean_17deafae.HelloHi(Unknown Source)
>> at com.hi._EJSRemoteStatelessHelloBean_17deafae_Tie.HelloHi(_EJSRemoteStatelessHelloBean_17deafae_Tie.java:159)
>> at com.hi._EJSRemoteStatelessHelloBean_17deafae_Tie._invoke(_EJSRemoteStatelessHelloBean_17deafae_Tie.java:87)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:627)
>> at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:480)
>> at com.ibm.rmi.iiop.ORB.process(ORB.java:512)
>> at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
>> at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2719)
>> at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2584)
>> at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
>> at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
>> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
>> SERVER (id=226983de, host=indev01) TRACE END.
; nested exception is:
javax.jms.JMSException: Failed to create connection
at com.ibm.ejs.jms.JMSCMUtils.mapToJMSException(JMSCMUtils.java:141)
at com.ibm.ejs.jms.JMSConnectionFactoryHandle.createConnection(JMSConnectionFactoryHandle.java:254)
at com.hi.HelloBean.HelloHi(HelloBean.java:43)
at com.hi.EJSRemoteStatelessHelloBean_17deafae.HelloHi(Unknown Source)
at com.hi._EJSRemoteStatelessHelloBean_17deafae_Tie.HelloHi(_EJSRemoteStatelessHelloBean_17deafae_Tie.java:159)
at com.hi._EJSRemoteStatelessHelloBean_17deafae_Tie._invoke(_EJSRemoteStatelessHelloBean_17deafae_Tie.java:87)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:627)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:480)
at com.ibm.rmi.iiop.ORB.process(ORB.java:512)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2719)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2584)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Caused by: javax.jms.JMSException: Failed to create connection
... 15 more
does any one know what is the reson behind it?

thanks in advance,
 
nitss bhavsar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
resolved this problem...i got this error because i have not included mq jar in the classpath and in the application server i changed the transport mode from bindings to client...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic