1 Reply Latest reply on Mar 12, 2003 11:43 PM by Adrian Brock

    JSP compilation fails

    julius Newbie

      1) jboss-3.0.6_tomcat-4.1.18.zip extracted.
      2) Not Jboss but only Catalina (Tomcat) started by means of:
      \jboss-3.0.6_tomcat-4.1.18\tomcat-4.1.x\bin>catalina start
      3) http://localhost:8080/ in the URL window of the browser (IE) fails to compile index.jsp and causes the error message:

      handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
      if (pageContext != null) pageContext.handlePageException(t);

      4) Found the following code snippet in \jboss-3.0.6_tomcat-4.1.18\tomcat-4.1.x\work\Standalone\localhost\_\index_jsp.java:

      catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
      if (pageContext != null) pageContext.handlePageException(t);

      5) It seems to me, that this file (index_jsp.java) is generated by Jasper(?) when the browser asks for the Tomcat
      opening page \jboss-3.0.6_tomcat-4.1.18\tomcat-4.1.x\webapps\ROOT\index.jsp

      6)So, index.jsp renamed to index.html and indeed: the page now shows up in IE as
      Testing the Servlet examples that come with jboss-3.0.6_tomcat-4.1.18.zip: no problems
      Testing any JSP-example (.jsp file) that comes with the package generates the error message under 3).

      Did I mess up or was bugged down??