9 Replies Latest reply on Nov 10, 2002 10:42 PM by Zhiyong Li

    Problem width jsp:include

    Lorenzo Martinelli Newbie

      I'm upgrading my project from "JBoss 2.4.4 with integrated Tomcat 4.0.1" to "JBoss 3.0.0 with integrated Tomcat 4.0.3".
      Inside my jsp pages I use the following statement:
      <jsp:include page="../MyDir/MyPage.jsp" flush="true"/>

      This statement works properly with "JBoss 2.4.4 with integrated Tomcat 4.0.1" and with "Tomcat 4.0.3".
      The same statement under "JBoss 3.0.0 with integrated Tomcat 4.0.3" gives me the following error.
      11:17:20,104 ERROR [Engine] ApplicationDispatcher[/aec] Servlet.service() for servlet jsp threw exception
      javax.servlet.ServletException: /AnotherDir/AnotherSubDir/../../MyDir/MyPage.jsp
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:212)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      11:17:20,120 ERROR [Engine] ----- Root Cause -----
      java.io.FileNotFoundException: /AnotherDir/AnotherSubDir/../../MyDir/MyPage.jsp
      at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:520)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)

      The same thing happens with the final application "StoreFront" in the "Jakarta Struts Book Review Project" - http://www.theserverside.com/resources/strutsreview.jsp - (chapter "Packaging your Struts Application".
      "StoreFront" works correctly under "JBoss 2.4.4 with integrated Tomcat 4.0.1" and under "Tomcat 4.0.3".
      Again I get the same error running the "StoreFront" application under "JBoss 3.0.0 with integrated Tomcat 4.0.3"..

      Thank's, Lorenzo