I was trying to connect to a bean in a remote machine(weblogic server) using
a servlet client.
I tried connecting using a servlet running via servletrunner. The following
error was reported while trying to connect to the bean.
java.lang.ClassCastException:
Billing.CustomerBeanHomeImpl_ServiceStub java.lang.ClassCastException:
Billing.CustomerBeanHomeImpl_ServiceStub at
clients.CustomerClient.connectToBean(CustomerClient.java:82) at
clients.CustomerClient.doPost(CustomerClient.java:130) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:521) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at
sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.java:165)
at
sun.servlet.http.HttpServerHandler.handleConnection(HttpServerHandler.java:1
21) at sun.servlet.http.HttpServerHandler.run(HttpServerHandler.java:90) at
java.lang.Thread.run(Thread.java:479)
( I am doing a lookup for "Billing.CustomerHome", and the method
connectToBean() is used to connect).The same error occurred when running the
servlet client in my local weblogic server(my machine itself), whereas I was
able to connect to the bean and execute methods using a normal, command
prompt client.
Has anyone faced similar problems? Tips/Ideas, anyone?
Manoj Govindan
===========================================================================
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".