Why is Class.forName required to load drivers in Tomcat 8 ?

2015-02-18 Thread sreyan32
I am writing a simple Servlet that uses JDBC to talk to MySQL and deploying it in Tomcat. Why do I need to add the line -: Class.forName(com.mysql.jdbc.Driver); to load the JDBC driver ? If I don’t do this I get an exception of -: java.sql.SQLException: No suitable driver was found. Why is

Re: Why is Class.forName required to load drivers in Tomcat 8 ?

2015-02-18 Thread sreyan32
What is the SYSTEM PATH that you are referring to ? Is it the JAVA_HOME or the PATH system variable ? What is the CLASSPATH just before Tomcat properly starts up ? What is it after it starts up ? Is the same jar files below -: bin/bootstrap.jar bin/tomcat-juli.jar Correct me if I am wrong

Re: Why is Class.forName required to load drivers in Tomcat 8 ?

2015-02-18 Thread sreyan32
What is the SYSTEM PATH that you are referring to ? Is it the JAVA_HOME or the PATH system variable ? What is the CLASSPATH just before Tomcat properly starts up ? What is it after it starts up ? Is the same jar files below -: bin/bootstrap.jar bin/tomcat-juli.jar Correct me if I am wrong

Re: Where are my non-persistent sessions stored ?

2015-01-20 Thread sreyan32
Is there any way for stopping sessions to be created for each “first-time” GET request to an ordinary page ? Because doesn't it seem redundant that even if the developer is not using the session, the server will still create one ? A real life popular website has millions of users at a time. So

Where are my non-persistent sessions stored ?

2015-01-17 Thread sreyan32
I am new to Tomcat and interested in learning how to works internally. I was reading the following thread on JavaRanch but it did not give a concrete answer-: http://www.coderanch.com/t/467039/Tomcat/sessions-stored Does the container use an Array-List or a HashMap to store the HTTPSessions ?

Why isn't the doGet and doPost methods declared as abstract ?

2015-01-11 Thread sreyan32
I have been browsing the source code of Tomcat and would like to know why the javax.servlet.HTTPServlet class has a non abstract implementation of the doGet, doPost, etc methods. Why not just declare them abstract ? I mean HTTPServlet is an abstract class so why take the trouble to write

Re: How do you send a mail to users-h...@tomcat.apache.org ?

2015-01-10 Thread sreyan32
So why is there users-h...@tomcat.apache.org ? Is it redundant ? And also how do I reply to a particular thread ? Is it just my hitting the reply button of my email client ? Regards Sreyan Chakravarty From: Yaragalla Muralidhar Sent: ‎Saturday‎, ‎January‎ ‎10‎, ‎2015 ‎4‎:‎47‎ ‎PM To:

How do you send a mail to users-h...@tomcat.apache.org ?

2015-01-10 Thread sreyan32
So why is there users-h...@tomcat.apache.org ? Is it redundant ? And also how do I reply to a particular thread ? Is it just my hitting the reply button of my email client ? Regards Sreyan Chakravarty From: Yaragalla Muralidhar Sent: ‎Saturday‎, ‎January‎ ‎10‎, ‎2015 ‎4‎:‎47‎ ‎PM To:

How do you send a mail to users-h...@tomcat.apache.org ?

2015-01-10 Thread sreyan32
I am completely new to this form of support and it is pretty confusing. Whenever I send a mail to users-h...@tomcat.apache.org I get a reply from the “ezmlm program” that “The message I received wasn't sent to any of my command addresses.” Does that mean that users-help does not exist ? Because

Re: How do you send a mail to users-h...@tomcat.apache.org ?

2015-01-10 Thread sreyan32
You didn't say anything about how to reply to a thread in the mailing list. Right now I am just hitting the reply button on my mail client and sending my reply. Is that the correct way ? Don't I have to use a thread-id or something in my sending mail address ? Please let me know asap.