Deploy a Java application

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

  1. Log into the Plesk Control Panel and verify if the Tomcat module is installed.



  2. 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.



  3. 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!

  4. 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.
  5. 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.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to download mail using an e-mail program - Windows

To set up Microsoft Outlook Express: Open Microsoft Outlook Express. Go to Tools >...

How to download mail using an e-mail program - Windows

To set up Microsoft Outlook Express: Open Microsoft Outlook Express. Go to Tools >...

How to change SMTP port number - Windows

To set up Microsoft Outlook Express: Open Microsoft Outlook Express Go to Tools >...

How to setup a subdomain - Windows

To set up a subdomain: Click Subdomains on your home page. Click Add New Subdomain....

Can't send mail but can receive - Windows

Usually when a user cannot send mail it is caused by a block on the Internet service provider's...