Product:
Search Type:

How can I verify that Tomcat service works on my Plesk server.

Article ID: 1569 
Last Review: Dec,24 2007
APPLIES TO:
  • Plesk 8.x for Linux/Unix

RESOLUTION


Plesk uses regular Tomcat server that comes with your operation system. There are two ways to access JSP application on the Plesk server: through 9080 and 80 ports. If you access the application using 9080 port (like http://domain.tld:9080/WebAppName), you get response directly from the Tomcat server. If you open http://domain.tld/WebAppName/, then you access Apache Web server that forwards request to Tomcat on 9008 port by mod_jk accordingly to AJP13 connection configuration in the domain's httpd.include, for example:

<IfModule mod_jk.c>
JkMount /WebAppName ajp13
JkMount /WebAppName/* ajp13
</IfModule>


Tomcat functioning itself can be checked using examples which are configured by default, open http://SERVER_IP:9080/examples/.
If you wish to verify Tomcat functioning on the domain, perform the following actions:

1. Create WAR archive from the examples application that are distributed with your Tomcat. To do it create ZIP archive of the directory with Tomcat example Applications.
For Tomcat4:
cd /var/tomcat4/webapps/examples
zip -r examples4.war ./


For Tomcat 5:
cd /var/lib/tomcat5/webapps/jsp-examples
zip -r examples5.war ./


2. Then upload this WAR through Plesk CP, restart Apache to force the web-applications to work immediately and check if it works.

If there are any problem with Tomcat, examine catalina.out for errors. It is usually locate in /var/log/tomcat5/catalina.out ( or /var/log/tomcat4/catalina.out for Tomcat 4 ).
Keywords: tomcat configured properly works fine verify

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields