Author: markt
Date: Thu Apr 17 15:07:38 2008
New Revision: 649302

URL: http://svn.apache.org/viewvc?rev=649302&view=rev
Log:
Patch for bug 43683. It could be more efficient if wrapper.started was visible 
but that would have made the patch quite invasive.

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardContextValve.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContextValve.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContextValve.java?rev=649302&r1=649301&r2=649302&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContextValve.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContextValve.java Thu 
Apr 17 15:07:38 2008
@@ -136,6 +136,13 @@
 
         // Select the Wrapper to be used for this Request
         Wrapper wrapper = request.getWrapper();
+
+        if (wrapper.isUnavailable()) {
+            // May be as a result of a reload
+            // Try and find the new wrapper
+            wrapper = (Wrapper) container.findChild(wrapper.getName());
+        }
+
         if (wrapper == null) {
             String requestURI = request.getDecodedRequestURI();
             notFound(requestURI, response);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to