You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/06/30 14:35:11 UTC
DO NOT REPLY [Bug 21187] New: -
Method init called twice for filter class
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: tomcat-dev@jakarta.apache.org
ReportedBy: f.dalan@mbm.it
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org