Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Create the EJB  RSS feed

 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I deployed my EJB on my machine I could create the instance of the bean & connect to it no problem. But, when I deploy the EJB on another machine & connect to that server, the lookup works but an RMI Exception is thrown -
java.rmi.RemoteException: CORBA UNKNOWN 1230242048 No; nested exception is:
org.omg.CORBA.UNKNOWN: minor code: 1230242048 completed: No
org.omg.CORBA.UNKNOWN: minor code: 1230242048 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.iona.corba.art.streamables.SystemExceptionStreamable._read(System
ExceptionStreamable.java:103)
at com.iona.corba.giop.GIOP_1_2_ReplyProcessorImpl.process_reply(GIOP_1_
2_ReplyProcessorImpl.java:314)
at com.iona.corba.giop.GIOPClientStreamRequestInterceptorImpl.stream_inv
oke(GIOPClientStreamRequestInterceptorImpl.java:562)
at com.iona.corba.art.binding.IORProxy.invoke(IORProxy.java:527)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:294)
at _ReminderHome_Stub.create(_ReminderHome_Stub.java:114)
at com.columba.exprimer.ColumbaConnection.doInitialise(ColumbaConnection
.java:449)
at com.columba.exprimer.GenericDesktop.service(GenericDesktop.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
01)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
at java.lang.Thread.run(Thread.java:484)

Just before I attept to talk to the bean, I create an instance of another Bean also deployed on the same server - this one works fine even though the code is different.
Are there any settings that would make the bean work deployed on one machine but not on another?
Thanks in advance,
Dave
 
Kareem Qureshi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,
Are you using the EJB2.0 specs?
is your home lookup is like mentioned below
Context ctx = new InitialContext()
xxHome xx = (xxHome)javax.rmi.PortableRemoteObject.narrow(ctx.lookup(/../../xxHome), xxHome.class)
also are you having the stubs on Tomcats webapps folder
HTH
Kareem
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!