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 14461] New: - init() in servlet does not get called in tomcat4.1.12
Date Tue, 12 Nov 2002 00:48:22 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=14461>.
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=14461

init() in servlet does not get called in tomcat4.1.12

           Summary: init() in servlet does not get called in tomcat4.1.12
           Product: Tomcat 4
           Version: 4.1.12
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Tester
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dinesh@infravio.com


Hi,
I tried a sample servlet in tomcat 4.1.12. I found that the init() method was 
never called.Is it a bug?
Please find the servlet code mentioned below:
import javax.servlet.http.HttpServlet;
import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.ServletException;
import java.io.PrintWriter;
import java.io.IOException;
import java.sql.*;
 
public class RegisterUser extends HttpServlet{
 
 public void init()
  throws ServletException {
  
  System.out.println("******4444444**********");
  
  System.out.println("******4444444**********");
 }
 
 public void service(HttpServletRequest req,HttpServletResponse res)
  throws ServletException,IOException{
  
  res.setContentType("text/html");
  PrintWriter out = res.getWriter();
  out.println("Cool Man");
 
  
 }
 
}
 
The line System.out.println("******4444444**********"); did not get printed.
Can u pls tell me what's the problem?
Thanks in advance.
Regards,
G.Dinesh.
Programmer,
Infravio Inc.
www.infravio.com

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message