Deploy a Java application.
Information
Several hosting companies are using the Plesk control panel (for example Plesk 7) with the Tomcat module installed. This module supports deploying and managing Tomcat web applications allowing users to set up hosting with JSP support.
Before you start developing a Java web application, gather as much information as possible about your hosting environment. With this information in mind you can start developing your Java web application.
- Which MySQL version is installed?
You can find this answer, by uploading a phpinfo.php file on the webserver.
For example: MySQL 3.23.58
- Which OS is installed?
This information is also displayed by the phpinfo.php file.
For example: Linux 2.4.22
- Which webserver is installed?
This information is also displayed by the phpinfo.php file.
For example: Apache/2.0.50 (Fedora)
- Which Plesk version is installed?
You can find the answer in the Plesk Control Panel.
Go to the homepage and click on the Report button.
For example: psa v7.5.2_build75050204.17 os_FedoraCore 2
Besides the information you can retrieve yourself, there are some information you can only get by asking your hosting provider:
- Which Tomcat version is installed?
For example: tomcat4 4.1.24-full.2jpp (= Tomcat 4.1.24).
- Which other software has been installed to support JSP and Java Servlet hosting?
For example:
j2sdk-1_4_2-linux-i586.rpm (= j2sdk 1.4.2)
regexp-1.3-1jpp.noarch.rpm (= regexp 1.3)
xerces-j-1.2.1-2.noarch.rpm (= xerces-j 1.2.1)
Operating system used
none
Software prerequisites
Plesk 7.5.2 (Reloaded)
Procedure
- Log into the Plesk Control Panel and verify if the Tomcat module is installed.
- Click on the Tomcat button.
Verify if the Disable button is displayed, if NOT, click on the Enable button:
Note: If the exclamation image is displayed but Tomcat is running, this means uploaded war files are not deployed. Ask your hosting provider if they can activate the Tomcat application.
- The Tomcat server is now running. You can verify this, by entering:
http://www..com:8080
The Tomcat welcome page is displayed.
Note: The Tomcat Administration and Tomcat Manager links on the welcome page are not working!
- On the Plesk Control Panel click button "Add New Java Application", upload a war file and press OK button.
In this example the struts-blank.war file has been uploaded. This war file can be found in struts 1.2.6 beta.
Note: Do not use the struts-blank.war in struts 1.2.4.
For unkown reasons you will get the following error message when deployed by Plesk: Servlet action is currently unavailable.
- The war file is deployed. Click on the war filename to access the web application or enter:
Note: If no Java web application is found a blank page will be displayed.
Note: The three buttons on the right side are respectively: start, stop and restart the Tomcat server.