Hi
I have a problem getting a RemoteObject from a Handle.
The Been is a stateful session Bean.
The Handle has been stored in a HttpSession and the creation of the
RemoteObject works fine.
When getting the RemoteObject with
Object objref = myHandel.getEJBObject();
myRemote = (Remote)PortableRemoteObject.narrow(objref,Remote.class);
I recieve a clientside Exception:
Error: 500
Location: /servlet/AccessPointServlet
Internal Servlet Error:
java.rmi.ServerException: Could not get EJBObject; nested exception is:
javax.naming.NoInitialContextException: Need to specify class
name in environment or system property, or as an applet parameter, or in
an application resource file: java.naming.factory.initial
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file: java.naming.factory.initial
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:2
83)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at
org.jboss.ejb.plugins.jrmp.interfaces.StatefulHandleImpl.getEJBObject(St
atefulHandleImpl.java:65)
at AccessPointServlet.processRequest(AccessPointServlet.java:67)
at AccessPointServlet.doGet(AccessPointServlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
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.jav
a:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
at java.lang.Thread.run(Thread.java:484)
We are using jboss 2.0 final and tomcat 3.2 as Webserver
runing on jdk1.3 on Windows 2000
Mit freundlichen Grüssen / Kind regards
Burkard Endres
i-te systems GmbH
Wilhelm-Dahl-Strasse 16
97082 Wuerzburg
Germany
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user