i am using WebSphere and yes I do have a JSP that gets called from the
servlet.. how does that solve the mystery?
Saurabh Khare
IBM UK Laboratories
Hursley Park
Winchester
Phone(direct): +44 (0) 1962 815405
email: [EMAIL PROTECTED]
Ext 245405, Room A4129.
Colleen Wtorek <[EMAIL PROTECTED]> on 08/17/2000 08:04:41 PM
Please respond to A mailing list for Enterprise JavaBeans development
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Saurabh Khare/UK/IBM)
Subject: Re: ClassCastError
are you using weblogic?
do you have a JSP page that uses your servlet?
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Saurabh Khare
> Sent: Thursday, August 17, 2000 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: ClassCastError
>
>
> Having tried for half a day.. I have resorted to the mailing list.!
> Basically, I have a servlet thats using an EJB, so I have this lookup
> procedure (below) in the performTask method of the servlet class...
>
> ....
> Object object = ctx.lookup("Sample");
> sampleHome =
> (ejb_cics_sample.SampleHome)javax.rmi.PortableRemoteObject.nar
> row((org.omg.CORBA.Object)object,
>
> ejb_cics_sample.SampleHome.class);
> ....
>
> and I keep getting a runtime error of:
>
> java.lang.ClassCastException
> at
> javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:330)
> at sample.SampleServlet.performTask(SampleServlet.java:136)
> at sample.SampleServlet.doPost(SampleServlet.java:64)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:566)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:639)
> at
> com.ibm.servlet.engine.webapp.StrictServletInstance.doService(
> ServletManager.java:557)
> at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(
> StrictLifecycleServlet.java:160)
> at
> com.ibm.servlet.engine.webapp.IdleServletState.service(StrictL
> ifecycleServlet.java:287)
> at
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(S
> trictLifecycleServlet.java:105)
> at
> com.ibm.servlet.engine.webapp.ServletInstance.service(ServletM
> anager.java:349)
> at
> com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispa
> tch(ServletManager.java:705)
> at
> com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatc
> h(ServletManager.java:631)
> at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWe
> bAppDispatch(WebApp.java:1129)
> at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
> (WebApp.java:1001)
> at
> com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(
> WebApp.java:960)
> at
> com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(
> WebGroup.java:681)
> at
> com.ibm.servlet.engine.invocation.CachedInvocation.handleInvoc
> ation(CachedInvocation.java:67)
> at
> com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByU
> RI(ServletRequestProcessor.java:139)
> at
> com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.servi
> ce(OSEListener.java:300)
> at
> com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceR
> unnable.run(SQEventListenerImp.java:230)
> at
> com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQ
> Event(SQEventListenerImp.java:104)
> at
> com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.n
> otifyEvent(SQEventSource.java:202)
> at
> com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventS
> ource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
> at
> com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventS
> ource$SelectRunnable.run(SQWrapperEventSource.java:216)
> at
> com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$C
> tlRunnable.run(OutOfProcThread.java:248)
> at java.lang.Thread.run(Thread.java:472)
>
> Any ideas anyone? I have tried even without the (org.omg.CORBA.Object)
> bit.. no good! Thanx in advance!
>
>
> Saurabh Khare
>
> ==============================================================
> =============
> 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".
>
>
===========================================================================
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".
===========================================================================
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".