I am using encoded forms from "EAR A" to "EAR B".
When I try to process the request:
accion = "/decimprenta";
pagina = "/procesardeclaracion.do";
this.getServlet().getServletContext().getContext(accion).getRequestDispatcher(pagina).forward(request, response);
the "EAR A" throws the following exception:
java.lang.RuntimeException: SRV.8.2: RequestWrapper objects must extend ServletRequestWrapper or HttpServletRequestWrapper
at com.ibm.wsspi.webcontainer.util.ServletUtil.unwrapRequest(ServletUtil.java:91)
at com.ibm.wsspi.webcontainer.util.ServletUtil.unwrapRequest(ServletUtil.java:63)
at com.ibm.wsspi.webcontainer.util.ServletUtil.unwrapRequest(ServletUtil.java:58)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1127)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:191)
Browsing, I found this link with the same error, but the patches are version 6 of WAS. I am using WAS 8: http://www-01.ibm.com/support/docview.wss?uid=swg1PM10357
Any idea?