1 Reply Latest reply on May 16, 2005 2:57 PM by Darryl Miles

    Urgent help needed by a TOMCAT/JSP beginner...

    Heng kk Newbie

      i have this problem ..

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

      exception

      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: 2 in the jsp file: /esos/EsosLogin.jsp
      Generated servlet error:
      EsosUtil cannot be resolved


      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
      org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


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


      i dunno how to solve it..

      izzit due to the wrong path??

      i put my .jsp files inside ROOT/esos
      and the .class file put into

      ROOT/WEB-INF/esos/utility

      i m using tomcat 5.5.9 with j2sdk1.5 .. window xp pro..

      thank you..

        • 1. Re: Urgent help needed by a TOMCAT/JSP beginner...
          Darryl Miles Novice

           

          "xiaozhide7" wrote:
          An error occurred at line: 2 in the jsp file: /esos/EsosLogin.jsp
          Generated servlet error:
          EsosUtil cannot be resolved

          i put my .jsp files inside ROOT/esos
          and the .class file put into

          ROOT/WEB-INF/esos/utility


          Lets say your Java class is "com.mydomain.EsosUtil" then you should have your class file as:

          ROOT/WEB-INF/classes/com/mydomain/EsosUtil.class

          if you have no package maybe:

          ROOT/WEB-INF/classes/EsosUtil.class

          will work for you. But I'd not recommend packageless classes.