Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.

Check  JSP, tomcat, servlet version online.

Just put this code in info.jsp page and access it :

Working with server: <%= application.getServerInfo() %><br>
Servlet Specification: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %> <br>
JSP version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>
Sessionid : <%= session.getId() %><br>

The output would be like this :

Working with server: Apache Tomcat/5.5.28

Servlet Specification: 2.4

JSP version: 2.0

Sessionid : 021B82B3FD165A5975ED779080F0F341

To enable the jsp support on your domain, please follow these instructions

Edit the following apache configuration file..

root@server[~]#vi /etc/httpd/conf/httpd.conf

For respective domain please uncomment the the Include file path

Include “/usr/local/apache/conf/userdata/std/1/username/domainname/*.conf”

save and exit

Now access the path in the Include

root@server[~]# cd /usr/local/apache/conf/userdata/std/1/
root@server[~]# mkdir username
root@server[~]# cd username
root@server[~]# mkdir domainname
root@server[~]# cd domainname
root@server[~]# vi cp_jkmount.conf

Configure the the file cp_jkmount.conf by adding the code like

<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
JkMount /*.do ajp13

Note: To map the JkMount context for a Tomcat server allowing it for entire account, please use the following code.

<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
JkMount /* ajp13

Then check the tomcat configuration file.

root@server[~]# vi /usr/local/jakarta/tomcat/conf/server.xml

Open above file and add the following code at the end of the file.

<Host name=”domainname” appBase=”/home/username/public_html”>
docBase=”/home/username/public_html” debug=”1″/>
<Context path=”/manager” debug=”0″ privileged=”true”

Save this and restart the tomcat server and httpd service on your server..!

root@server[~]#/etc/init.d/httpd stop
root@server[~]# /usr/local/jakarta/tomcat/bin/./shutdown.sh
root@server[~]# /etc/init.d/httpd startssl
root@server[~]# /usr/local/jakarta/tomcat/bin/./startup.sh

Logs for Tomcat and all tomcat based applications. :

root@server[~]# /usr/local/jakarta/tomcat/logs/catalina.err


The Java Files and Libraries are stored at

[root@server ~]# whereis java

java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz

The rpm packages for Java on Linux Systems are

[root@server ~]# rpm -qa java*