can you provide the complete stack trace, usually when a Class cast
exception happens it will also print out the class that fails,
> java.lang.ClassCastException
^^^^^^^^(nothing here?)
> at
> org.apache.jsp.EditOffering_jsp._jspService(EditOffering_jsp.java:129)
have you imported the class in the JSP <% @ page import...?
Filip
> -----Original Message-----
> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 3:31 AM
> To: Tomcat Users List
> Subject: Re: Class cast exception ...
>
>
> no ... its just in one place neither have i reloaded the context. Even
> if i did reload the context .. it should have found the correct .class
> file since i have specified the complete path to it in the jsp useBean
> tag right ?
>
> On Friday, June 13, 2003, at 04:24 AM, Filip Hanik wrote:
>
> > any chance the class
> > com.wavesinmotion.cw.classes.jsphelpers.LocationHelper
> >
> > resides in more than one place?
> >
> > or did you reload the context?
> >
> > Filip
> >
> >> -----Original Message-----
> >> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, June 12, 2003 3:17 AM
> >> To: Tomcat Users List
> >> Subject: Class cast exception ...
> >>
> >>
> >> I get the following error in tomcat:
> >>
> >> java.lang.ClassCastException
> >> at
> >> org.apache.jsp.EditOffering_jsp._jspService(EditOffering_jsp.java:129)
> >>
> >> I looked at EditOffering_jsp.java and it has this at line 129:
> >>
> >> locationHelper =
> >> (com.wavesinmotion.cw.classes.jsphelpers.LocationHelper)
> >> pageContext.getAttribute("locationHelper", PageContext.SESSION_SCOPE);
> >>
> >> which in the corresponding .jsp page is:
> >>
> >> <jsp:useBean id="locationHelper"
> >> class="com.wavesinmotion.cw.classes.jsphelpers.LocationHelper"
> >> scope="session">
> >> <jsp:setProperty name="locationHelper"
> >> property="dbReader"
> >> value="<%=
> >> session.getAttribute("DBREADER")%>" />
> >> <jsp:setProperty name="userHelper"
> >> property="dbWriter"
> >> value="<%=
> >> session.getAttribute("DBWRITER")%>" />
> >> </jsp:useBean>
> >>
> >> Does anybody have any idea as to why i am getting this class cast
> >> exception ?
> >>
> >> Thanks.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]