https://dwr.dev.java.net/issues/show_bug.cgi?id=114
Issue #|114
Summary|forwardToString fails on WebLogic 8.1 with exception "
|Original response not available"
Component|dwr
Version|1.1.3
Platform|All
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|utilities
Assigned to|joe_walker
Reported by|jnizet
------- Additional comments from jni...@dev.java.net Thu Aug 10 12:07:12 +0000
2006 -------
forwardToString doesn't work on WebLogic 8.1. It fails with the following
exception:
javax.servlet.ServletException: Original response not available
at weblogic.servlet.internal.RequestDispatcherImpl.forward
WebLogic seems to expect an instance of their HttpServlet response
implementation or an instance of javax.servlet.http.HttpServletResponseWrapper
I fixed the issue (but didn't execute the unit tests to see if the fix had
impacts) by making the following changes:
- In SwallowingHttpServletResponse:
- make the class extend javax.servlet.http.HttpServletResponseWrapper
- add a parameter "HttpServletResponse originalResponse" to the constructor
- call super(originalResponse) in the constructor
- In DefaultWebContext.forwardToString():
- add the argument getHttpServletResponse() to the
SwallowingHttpServletResponse constructor call.