aspose file tools*
The moose likes Websphere and the fly likes calling ejb through standalone client program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "calling ejb through standalone client program" Watch "calling ejb through standalone client program" New topic
Author

calling ejb through standalone client program

nitss bhavsar
Ranch Hand

Joined: Jan 09, 2012
Posts: 55
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

Joined: Jan 09, 2012
Posts: 55
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling ejb through standalone client program
 
Similar Threads
Error calling EJB from client
EJB TransactionRolledbackException
error with RAD 7.5 starting WAS 6.1 server
Getting Corba Marshall Exception while accessing the WAS remotely form my client .
Problem creating a new method in existing EJB in RAD 7