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]