I am having a bit of difficulty in using the
PortableRemoteObject.narrow(obj, class) at Servlet init()... If I cast it to
EJBHome like below, it works, but it doesn't work if I use the narrow()
method.

Working version: TestHome test = (TestHome) obj;
Not working version: TestHome test= (TestHome)
PortableRemoteObject.narrow(obj, TestHome.class);

Both the Weblogic server and servlet are running off the same machine, and I
am using the weblogic 5.1 for researching purposes.

Am I wrong in using the PortableRemoteObject here?? and just use the normal
class casting or ??

The error message that I receive is this..

500 Servlet Exception
javax.servlet.ServletException
        at com.hatchware.servlet.HatchwareServlet.init(HatchwareServlet.java:51)
        at com.caucho.server.http.Application.loadServlet(Application.java:1198)
        at com.caucho.server.http.Invocation.getServlet(Invocation.java:252)
        at com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:360)
        at com.caucho.server.http.VirtualHost.service(VirtualHost.java:377)
        at com.caucho.server.http.Request.dispatch(Request.java:202)
        at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:302)
        at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java,
Compiled Code)
        at com.caucho.server.TcpConnection.run(TcpConnection.java, Compiled Code)
        at java.lang.Thread.run(Thread.java:479)

Any help is appreciated. Thanks.

Se Hee

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to