DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21187>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21187

Method init called twice for filter class 

           Summary: Method init called twice for filter class
           Product: Tomcat 4
           Version: 4.1.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a filter in my web application. When tomcat (4.1.24 in linux environmet) 
goes up, the method init() of my filter is called twice.
This is wrong for my application. I try to test a static attribute in this way

private static Boolean loggerCreated = new Boolean( false );

public void init( FilterConfig config ) { 
if ( !loggerCreated.booleanValue() ) {
synchronized ( loggerCreated ) {
loggerCreated = new Boolean( true );
}
...

but probably the class is load by two different class loaders.

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

Reply via email to