tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22390] New: - init() method called twice
Date Wed, 13 Aug 2003 18:03:19 GMT
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=22390>.
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=22390

init() method called twice

           Summary: init() method called twice
           Product: Tomcat 4
           Version: 4.1.27
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: zmeng@icpcorp.com


A servlet's init() (without ServletConfig as argument) method is called twice if
it is loaded on startup. It seemed the servlet class is loaded twice. I have a
static variable which is instantiated in the init(). The second time init() is
called, it is still null.

Mime
View raw message