5 Replies Latest reply on Jan 11, 2002 12:46 AM by Ashok Kr. Mahalik

    Intenal Servlet Error

    Alan Choy Newbie

      I've installed and run JBoss/Tomcat, and when I access a HTML page, it works fine. As soon as I tried to load up a JSP page, I got the following error (even with the JSP example provided by Tomcat) ...... can anyone of you give me a hint what went wrong?

      =============================================

      Error: 500
      Location: /SchedConf/index.jsp
      Internal Servlet Error:

      javax.servlet.ServletException: sun/tools/javac/Main
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      at org.apache.tomcat.core.Handler.service(Handler.java:287)
      at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      at java.lang.Thread.run(Thread.java:484)

      Root cause:
      java.lang.NoClassDefFoundError: sun/tools/javac/Main
      at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
      at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
      at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
      at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      at org.apache.tomcat.core.Handler.service(Handler.java:287)
      at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      at java.lang.Thread.run(Thread.java:484)

        • 1. Re: Intenal Servlet Error
          Fusayuki Minamoto Apprentice

          Tomcat couldn't compile your JSP because it didn't find the $JAVA_HOME/lib/tools.jar. See run_with_tomcat.bat.

          • 2. Re: Intenal Servlet Error
            Ashok Kr. Mahalik Newbie

            Did u get the answer, Please let me , even I have same problem too while I deployed the "interest" examples

            • 3. Re: Intenal Servlet Error
              Adrian Brock Master

              Which java version and operating do you use?

              Try searching the forums for "tools.jar" and
              "jsp compiler".

              Regards,
              Adrian

              • 4. Re: Intenal Servlet Error
                chiouyilong Newbie

                Chech your tools.jar is right set or include on
                JBOSS/TOMCAT Used CLASSPATH

                • 5. Intenal Servlet Error----- need help as soon
                  Ashok Kr. Mahalik Newbie

                  Guys I need a help, I am really struck !!!!!
                  My system carries:

                  Apache+Tomcat 3.2.3+Jboss2.2.2+Linux

                  I have servlet_2_2.jar which is in class path and tools.jar also in class path. Everything fine, when I strat a application to run from jboss it show the application's default page say http://localhost:8080/interest
                  I get the first page but then the problem starts here like when I click some button I mean (functionality) from the page then I get

                  Error: 500

                  Location: /interest/InterestServlet

                  Internal Servlet Error:

                  java.lang.NoClassDefFoundError: org/jboss/docs/interest/Interest
                  at java.lang.Class.newInstance0(Native Method)
                  at java.lang.Class.newInstance(Class.java:237)
                  at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268)
                  at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
                  at org.apache.tomcat.core.Handler.service(Handler.java:254)
                  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
                  at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
                  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
                  at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
                  at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
                  at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
                  at java.lang.Thread.run(Thread.java:484)