Q: How do you start and stop Tomcat server?
Ans: Using .\bin\startup.bat and .\bin\shutdown.bat.
Q: Where do you deploy your application in Tomcat?
Ans: We deploy web application as war or exploded format in .\webapps folder.
Q: What is WAR file?
Ans: WAR is stands for Web-application ARchive. These files are simply zipped files using the java jar tool. It is used to distribute a collection of JSP, Servlets, classes, XML files, tag libraries, static web pages (HTML and related files) and other resources that together make a web application.
Q: What is the default port number of Tomcat server?
Q: What is the configuration file of Tomcat?
Ans: Configuration file is .\conf\server.xml. You can configure port number, HTTPS protocol and other server optimization parameters in this file.
Q: How can you change the default port of Tomcat server?
Ans: Modify .\conf\server.xml and change port number in
<Connector port="8080" protocol="HTTP/1.1" tag.
Q: What is the deployment folder structure of a web application in Tomcat Server?
Ans: See above 'Structure of Web Application'.
Q: How do you configure data connection pool in Tomcat?
Ans: Using <datasource> tag in web.xml file.