https://issues.apache.org/bugzilla/show_bug.cgi?id=44547

           Summary: Tomcat fails to stop using filter
           Product: Tomcat 5
           Version: 5.5.23
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


We have a jsp application running on tomcat (5.5.23) and jdk 1.5.0.13. 
We added a filter class to collect service time for every request:

    <filter>
      <filter-name>siapFilter</filter-name>
      <filter-class>APUtility.SiapFilter</filter-class>
    </filter>
    <filter-mapping>
      <filter-name>siapFilter</filter-name>
      <url-pattern>/servlet/*</url-pattern>
    </filter-mapping>

and the SiapFilter class is in attachment. 

When we put the code to start a new thread to write statistical data to a log
file every hour tomcat doesn't stop anymore. While the same code:

           //start a new thread to write stats to log hourly
           if (service_time_logger == null){
                   service_time_logger = new SiapFilter();
                   service_time_logger.start();
           }


is put in the doFilter method there's no problem.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to