Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Strange EJB lookup problem

0 views
Skip to first unread message

Mrutyunjay

unread,
Nov 19, 2001, 11:51:18 PM11/19/01
to

Hi
I am experiencing a strange problem while looking up an EJB
I have an Application that consisting of web tier and EJB tier
i.e. I have a .war and .jar.
I have deployed .war on server running on physical system 1.
and have deployed .jar on server running on physical system 2.
In WEB tier I am looking up EJB in a servlet by reading the URL from a property
file. where the URL is the url of the server on which my EJBs are running.
NOW MY APP. IS RUNNING WITHOUT ANY PROBLEM.
The problem arises when I deploy the same jar which is running in physical system
2 on physical system 1, I get a java.lang.ClassCastException

HERE IS THE EXCEPTION:
java.lang.ClassCastException: $Proxy79
at com.my.presentation.helper.CmdAuthenticateUser.exec(CmdAuthenticateUser.java:255)
at com.my.presentation.controller.Svlt.service(Svlt.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

The Code at the line numbers pointed in the Exception are like this
CmdAuthenticateUser.java
253:Object obj = ctx.lookup("ProfileService");
254:ProfileServiceHome profileServiceHome =(ProfileServiceHome)obj;
255:profileService = (ProfileService) profileServiceHome.create();


Thanks
Mrutyunjay

0 new messages