0 Replies Latest reply on Nov 2, 2005 8:41 AM by Ron Teh

    Migrating from 2.4.10 to 4.0.3 and sendRedirect URL pattern

    Ron Teh Newbie

      I am migrating an application from JBoss 2.4.10 Tomcat 4.0.6 to JBoss 4.0.3 (Tomcat 5.5).
      The application login process, after performing a security check, routes to index.jsp which is:

      <%@page autoFlush="false" buffer="5kb"%>
      <% response.sendRedirect(
      "http://" +
      request.getServerName() +
      ":" +
      request.getServerPort() +
      request.getContextPath() +
      "/" +

      "myHome" is mapped to a servlet in web.xml.

      In JBoss 2.4.10 Tomcat 4.0.6, the application works; after a log-in, the "myHome" servlet is run.
      Under JBoss 4.0.3, the behaviour is as if "myHome" is not mapped to a servlet; the servlet is not run and the application breaks.
      Entering index.jsp directly into the browser after log-in, however, will invoke the servlet.
      Can anyone suggest what might be causing this behaviour under JBoss 4.0.3?