For BE/B.Tech/BCA/MCA/ME/M.Tech Major/Minor Project for CS/IT branch at minimum price Text Message @ 9424820157

Tomcat Server Interview Questions

Tomcat Server Interview Questions



(1) Tomcat server is which type of server?
      webserver

(2) In which folder we deploy our web application?
      in web-apps folder

(3) What is the default port number of tomcat?
      8080

(4) Who developed the tomcat?
      Apache

(5) How we start the tomcat server?
      By startup.bat

(6) How we stop the tomcat server?
      With the help of shutdown.bat.

(7) How can we change the default port number of the tomcat server?
      By using server.xml in the conf folder

(8) Mention the configuration files of Catalina.
The configurations files of Catalina include:

XML
Properties
Policy
Tomcat-users.xml

(9) What are the vital benefits of Running Tomcat as a service?
The benefits of Running Tomcat as a service are:

1) Automatic Startup – If the tomcat window service starts up automatically then it would be helpful when we want to start the system remotely.
2) Security – It allows you to execute under a special account that is protected from the other accounts.
3) Starting off the server without active user login: So even if there is no active user, the available server can be started.          

(10) What is the deployment process of web applications using the WAR file?
There is a Web apps directory in Tomcat under which all the web components JSP, Servlets, HTML are placed. Hereby putting all the files into a single folder we can compress the files into a single unit which has .WAR extension.
Now, we can easily deploy the web application by putting the WAR file in the Web apps directory. And, when the server starts it extracts all the web components.

(11) What are the configured Tomcat Valve’s?
There are basically four configured Tomcat Valves which are mentioned below:

Access Log
Remote Host Filter
Remote Address filter
Request Dumper    

(12) What do you mean by Tomcat Coyote and what is its use?
Tomcat Coyote is basically an HTTP connector based on HTTP/ 1.1 configuration which accepts and sends the web request to the Tomcat engine and again reverts to the client which makes the request.    

(13) What are the different ways in which we can secure the websites hosted on Tomcat Server?
There are multiple ways to do it and some of them are mentioned below:

Implementing SSL
Make use of a Cloud-based security provider.
Integrating with Web Application Firewall. 

(14)  What is the check or log extent provided by Apache Tomcat?
There are plenty of check levels provided and out of which “warn” is the default level.

Info
Debug
Warn
Notice
Crit
Alarm
Emerg
Error   

(15) How is Apache Tomcat different from Apache Web Server?
Apache Tomcat is used to host the web contents whereas Apache Web server is an HTTP server that is built to serve the static contents.
There is always a possibility to integrate Apache Tomcat and Apache Web Server. 

(16) Apart from Apache Tomcat, what are the different kinds of Web Servers?

LiteSpeed Web Server
GWS Web Server
Microsoft IIS Web Server
Nginx Web Server
Jigsaw Web Server
Sun Java System Web Server
Lighttpd Web Server

(17) What will happen if we have added “logLevel Debug” in httpd. conf file?
Adding the logLevel Debug provides you with more information in the error log in order to debug an issue. 

(18) Is it possible to capture the MAC address of the clients who are using your server?
No, it will not be possible to capture the MAC address of the clients who are using your server.

(19) How can we put a restriction to upload files on our web server?
Yes, we can restrict the user to upload files on our web server by using the “LimitRequestBody” directive.

(20) Apache runs as which user and what is the location of the main configuration file?
Apache runs with a user “nobody” and httpd daemon.
The location of the main configuration file is:

# /etc/httpd/conf/httpd.conf
# /etcapache2.conf



No comments:

Post a Comment



Please go through below tutorials:


Mule 4 Tutorials

DEPLOY TO CLOUDHUB C4E CLIENT ID ENFORCEMENT CUSTOM POLICY RABBIT MQ INTEGRATION
XML TO JSON WEBSERVICE CONSUMER VM CONNECTOR VALIDATION UNTIL SUCCESSFUL
SUB FLOW SET & REMOVE VARIABLE TRANSACTION ID SCATTER GATHER ROUND ROBIN
CONSUME REST WEBSERVICE CRUD OPERATIONS PARSE TEMPLATE OBJECT TO JSON LOAD STATIC RESOURCE
JSON TO XML INVOKE IDEMPOTENT FILTER FOR EACH FLAT TO JSON
FIXWIDTH TO JSON FIRST SUCCESSFUL FILE OPERATIONS EXECUTE ERROR HANDLING
EMAIL FUNCTIONALITY DYNAMIC EVALUATE CUSTOM BUSINESS EVENT CSV TO JSON COPYBOOK TO JSON
CHOICE ASYNC

Widely used Connectors in Mule 3

CMIS JETTY VM CONNECTOR SALESFORCE POP3
JMS TCP/IP WEBSERVICE CONSUMER QUARTZ MONGO DB
FILE CONNECTOR DATABASE CONNECTOR


Widely used Scopes in Mule 3

SUB FLOW REQUEST REPLY PROCESSOR CHAIN FOR EACH CACHE
ASYNC TCP/IP COMPOSITE SOURCE POLL UNTIL SUCCESSFUL
TRANSACTIONAL FLOW

Widely used Components in Mule 3

EXPRESSION CXF SCRIPT RUBY PYTHON
JAVASCRIPT JAVA INVOKE CUSTOM BUSINESS EVENT GROOVY
ECHO LOGGER


Widely used Transformers in Mule 3

MONGO DB XSLT TRANSFORMER REFERENCE SCRIPT RUBY
PYTHON MESSAGE PROPERTIES JAVA TRANSFORMER GZIP COMPRESS/UNCOMPRESS GROOVY
EXPRESSION DOM TO XML STRING VALIDATION COMBINE COLLECTIONS BYTE ARRAY TO STRING
ATTACHMENT TRANSFORMER FILE TO STRING XML TO DOM APPEND STRING JAVASCRIPT
JSON TO JAVA COPYBOOK TO JSON MAP TO JSON JSON TO XML FLATFILE TO JSON
FIXWIDTH TO JSON CSV TO JSON


Widely used Filters in Mule 3

WILDCARD SCHEMA VALIDATION REGEX PAYLOAD OR
NOT MESSAGE PROPERTY MESSAGE IDEMPOTENT FILTER REFERNCE
EXPRESSION EXCEPTION CUSTOM AND


Exception Strategy in Mule 3

REFERENCE EXCEPTION STRATEGY CUSTOM EXCEPTION STRATEGY CHOICE EXCEPTION STRATEGY CATCH EXCEPTION STRATEGY GLOBAL EXCEPTION STRATEGY


Flow Control in Mule 3

CHOICE COLLECTION AGGREGATOR COLLECTION SPLITTER CUSTOM AGGREGATOR FIRST SUCCESSFUL
MESSAGE CHUNK AGGREGATOR MESSAGE CHUNK SPLITTER RESEQUENCER ROUND ROBIN SOAP ROUTER