2 Replies Latest reply: Jan 15, 2009 7:33 AM by 807575 RSS

    get a run time error for JSP code

    807575
      I am trying to write some JSP code in the page source. Eventually the JSP code will call a servlet and get some data, now I just write a very simple statement to test it out:
      <jsp:expression>
      String s = "this";
      </jsp:expression>

      but when I run this project, I got the following errors:

      Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.

      Exception Details: org.apache.jasper.JasperException
      Unable to compile class for JSP No Java compiler was found to compile the generated source for the JSP. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, please check its installation and access path.

      Possible Source of Error:
      Class Name: org.apache.jasper.compiler.DefaultErrorHandler
      File Name: DefaultErrorHandler.java
      Method Name: javacError
      Line Number: 87


      Did I do any thing wrong?

      Thanks.