Hello All,
 
I am trying to connect to a session bean from a servlet. Actually, I am using a ServletDebugger within VisualAge. I am trying to debug another portion of the application.
My classpath contains the jonas jars, jta.jar, jndi.jar, the providerutil and the rmiregistry. I am running Jonas 1.6 in JDK1.2.2.
 
 
The code in question is:

  home = (ObtainTempInfoBeanHome) m_jndiContext.lookup("ObtainTempInfoBeanHome");
 
 
I get the following exception when I try to get the jndicontext.
 
ServletExec.ProcessRequest() exception: javax.servlet.ServletException: RequestNewServlet::init cannot lookup ObtainTempInfoBeanHome java.lang.ClassCastException
javax.servlet.ServletException: RequestNewServlet::init cannot lookup ObtainTempInfoBeanHome java.lang.ClassCastException
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 javax.servlet.ServletException(java.lang.String, java.lang.Throwable
 
 
Any ideas of what may be happening here? The only thing I can think of is that VisualAge is 1.1.7 Java although I have received this message in a different configuration while attempting to run this with ServletRunner.
 
TIA

Gil Winkelman
Technology Consultant
IntuiTek LLC
(503) 872-9583

 

Reply via email to