Author: remm
Date: Thu Jul 19 16:48:06 2007
New Revision: 557818
URL: http://svn.apache.org/viewvc?view=rev&rev=557818
Log:
- Fix classcast exceptions if Comet is used and there's a filter (I forgot to
commit this patch).
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardWrapperValve.java
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardWrapperValve.java
URL:
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardWrapperValve.java?view=diff&rev=557818&r1=557817&r2=557818
==============================================================================
---
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardWrapperValve.java
(original)
+++
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardWrapperValve.java
Thu Jul 19 16:48:06 2007
@@ -55,7 +55,7 @@
// Some JMX statistics. This vavle is associated with a StandardWrapper.
- // We exponse the StandardWrapper as JMX ( j2eeType=Servlet ). The fields
+ // We expose the StandardWrapper as JMX ( j2eeType=Servlet ). The fields
// are here for performance.
private volatile long processingTime;
private volatile long maxTime;
@@ -162,9 +162,10 @@
if (servlet instanceof CometProcessor
&& request.getAttribute("org.apache.tomcat.comet.support") ==
Boolean.TRUE) {
comet = true;
+ request.setComet(true);
}
- // Acknowlege the request
+ // Acknowledge the request
try {
response.sendAcknowledgement();
} catch (IOException e) {
@@ -195,6 +196,8 @@
ApplicationFilterFactory.getInstance();
ApplicationFilterChain filterChain =
factory.createFilterChain(request, wrapper, servlet);
+ // Reset comet flag value after creating the filter chain
+ request.setComet(false);
// Call the filter chain for this request
// NOTE: This also calls the servlet's service() method
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]