1 message in net.java.dev.dwr.issues[Issue 114] New - forwardToString fai...
FromSent OnAttachments
jni...@dev.java.netAug 10, 2006 5:06 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[Issue 114] New - forwardToString fails on WebLogic 8.1 with exception "Original response not available"Actions
From:jni...@dev.java.net (jni@dev.java.net)
Date:Aug 10, 2006 5:06:51 am
List:net.java.dev.dwr.issues

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.