null RequestDispatcher
I have a jsp error page to handle exceptions when a exception occurs inside a servlet, I'm running my servlet in Oracle Apllication Server 10g and all runs fine, but when we decided to change the application server to SJSAS 9 I get a null RequestDispatcher when I'm trying to redirect to the error page when the exception occurs, there's the code:
catch (NullPointerException npe){
request.setAttribute("javax.servlet.jsp.jspException", npe);
RequestDispatcher rqd = request.getRequestDispatcher("../error.jsp?barra=si");
rqd.forward(request,response);
}
I have the error page in root directory and the servlets has a context path like /sistema/ServletName and because I nedd to use relative path to access the error page from the servlet I use a relative path in getRequestDispatcher.
I suppose the get the NullPointerException because the path of the error page is wrong formed but in Oracle Application Server run well.

