Sweta Singh wrote:
>
> Can anybody help me to
> recognise the problem?
>
> Error: 500
> Internal Servlet Error:
>
> java.lang.ClassCastException: LoanCalculator
> at com.sun.web.core.ServletWrapper.loadServlet(ServletWrapper.java:90)
Yes, you are getting a ClassCastException. That means that some code is
trying to cast an object reference to some type, and the object is not
of the correct type. The stack trace tells you that the object being
cast is of type LoanCalculator and the exception is occuring in the
loadServlet method of the com.sun.web.core.ServletWrapper class. Since
this is the loadServlet method, I would guess that ServletWrapper is
loading your class, then attempting to cast the Object reference to a
reference of type Servlet. Your class LoanCalculator probably does not
extend GenericServlet or HttpServlet as it should.
K Mukhar
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html