Results 1 to 3 of 3
  1. #1
    raazu is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Post HTTP Status 500 error with apache tomcat server

    hai ...

    im doing a project on jsp with oracle backend...
    im using apache tomcat 5.0.16 server...
    few days ago tomcat server worked properly....but suddenly i dont know what happend to that..
    In my project a login page is there ...the login jpage is loading normally but here is the problem ..when i try to logged in it show an error...
    i cant rectify this and i dont know which was happend this error...........
    can any one help me plz.......

    Here is the error page...

    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: javax/servlet/Servlet
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:256)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

    root cause

    java.lang.NoClassDefFoundError: javax/servlet/Servlet
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClassCond(Unknown Source)
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknow n Source)
    java.net.URLClassLoader.defineClass(Unknown Source)
    java.net.URLClassLoader.access$000(Unknown Source)
    java.net.URLClassLoader$1.run(Unknown Source)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(Unknown Source)
    sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
    java.lang.ClassLoader.loadClass(Unknown Source)
    java.lang.ClassLoader.loadClass(Unknown Source)
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClassCond(Unknown Source)
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknow n Source)
    java.net.URLClassLoader.defineClass(Unknown Source)
    java.net.URLClassLoader.access$000(Unknown Source)
    java.net.URLClassLoader$1.run(Unknown Source)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(Unknown Source)
    sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
    java.lang.ClassLoader.loadClass(Unknown Source)
    java.lang.ClassLoader.loadClass(Unknown Source)
    sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    java.lang.ClassLoader.loadClass(Unknown Source)
    org.apache.catalina.loader.StandardClassLoader.loa dClass(StandardClassLoader.java:840)
    org.apache.catalina.loader.StandardClassLoader.loa dClass(StandardClassLoader.java:756)
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClassCond(Unknown Source)
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknow n Source)
    java.net.URLClassLoader.defineClass(Unknown Source)
    java.net.URLClassLoader.access$000(Unknown Source)
    java.net.URLClassLoader$1.run(Unknown Source)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(Unknown Source)
    org.apache.catalina.loader.StandardClassLoader.fin dClass(StandardClassLoader.java:520)
    org.apache.catalina.loader.StandardClassLoader.loa dClass(StandardClassLoader.java:857)
    org.apache.catalina.loader.StandardClassLoader.loa dClass(StandardClassLoader.java:756)
    org.apache.catalina.loader.StandardClassLoader.loa dClass(StandardClassLoader.java:840)
    org.apache.catalina.loader.StandardClassLoader.loa dClass(StandardClassLoader.java:756)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1353)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1213)
    org.apache.jasper.servlet.JasperLoader.loadClass(J asperLoader.java:184)
    org.apache.jasper.servlet.JasperLoader.loadClass(J asperLoader.java:110)
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClassCond(Unknown Source)
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknow n Source)
    java.net.URLClassLoader.defineClass(Unknown Source)
    java.net.URLClassLoader.access$000(Unknown Source)
    java.net.URLClassLoader$1.run(Unknown Source)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(Unknown Source)
    org.apache.jasper.servlet.JasperLoader.loadClass(J asperLoader.java:192)
    org.apache.jasper.servlet.JasperLoader.loadClass(J asperLoader.java:110)
    org.apache.jasper.JspCompilationContext.load(JspCo mpilationContext.java:582)
    org.apache.jasper.servlet.JspServletWrapper.getSer vlet(JspServletWrapper.java:177)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:296)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

    note The full stack trace of the root cause is available in the Tomcat logs.
    Apache Tomcat/5.0.16


    any help is appreciated.....
    email id: raaznu@gmail.com

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    class def not found for servlet means something servlet api that is regularly available to tomcat is now missing for some reason.

    quite possibly the servlet-api.jar file in tomcat's lib folder (maybe other jar files in the tomcat lib folder) have become corrupted or removed. Both have happened to me at times, bad virtual machine to work on, failed disk, or a maven based build process that would deploy additional api to the lib folder and delete things in there before copying the new lib files.

  3. #3
    raazu is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Struts2: why do i get http status 404 error?
    By anthrax in forum Web Frameworks
    Replies: 2
    Last Post: 04-24-2012, 04:16 PM
  2. How to download file from apache tomcat server
    By nnnnn in forum New To Java
    Replies: 8
    Last Post: 06-18-2010, 03:03 AM
  3. Replies: 7
    Last Post: 11-11-2009, 08:29 PM
  4. Replies: 1
    Last Post: 10-21-2008, 09:21 AM
  5. HTTP Status 404 - Servlet action is not available---Error
    By sireesha in forum Web Frameworks
    Replies: 0
    Last Post: 04-18-2008, 07:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •