4 Replies Latest reply on Sep 1, 2002 11:07 PM by 843835

    Can not compile the jsp in Tomcat 4

    843835
      Hello anyone

      Now I use jdk1.4 and Tomcat 4.0.4, and put in the directory d:\j2sdk and d:\tomcat. Even I set the classpath as follow, I still compile jsp.

      SET CLASSPATH=.;D:\j2sdk\lib\tools.jar;D:\tomcat\common\lib\servlet.jar

      but at before, i can run it at Tomcat 3.2.

      ------------------------------------------------------------------------
      type Exception report

      message Internal Server Error

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

      exception

      org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.

      D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:4: Class or interface declaration expected.
      import javax.servlet.*;
      ^

      D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.userCounter$jsp not found.
      public class userCounter$jsp extends HttpJspBase {
      ^
      2 errors, 1 warning

           at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
           at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
           at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
           at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
           at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
           at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
           at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
           at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
           at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
           at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
           at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
           at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
           at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
           at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
           at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
           at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
           at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
           at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
           at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
           at java.lang.Thread.run(Thread.java:536)

      pls help, thank you very much!