Announcement

Collapse
No announcement yet.

How to Deploy Java Applications

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Deploy Java Applications

    Overview

    Many Java applications ship in Web Application Archive (WAR) packages that you can easily install on your server.

    Note:If your application does not exist in a WAR package, your system administrator must manually install it.

    How to deploy Java WAR packages

    Important:

    1.Tomcat does not automatically deploy WAR files in the /home/username/public_html/$filename/ directory because EasyApache turns off the unpackWARs option for security reasons.
    2.The Apache Tomcat project provides a sample WAR file that you can use to verify that Java WAR packages function on your domain. For more information, view Tomcat's Sample Application website.

    To deploy a Java WAR package, using cPanel's File Manager interface

    To deploy a Java WAR package via the cPanel interface, navigate to cPanel's File Manager interface (Home >> Files >> File Manager) and perform the following steps:

    1.Select your public_html directory.
    2.Click New Folder and enter the new folder's name.
    3.Select your new folder in the center pane of the interface.
    4.Click Upload.
    5.Click Choose File.
    6.Browse to the Java WAR package and click Open.
    7.Select the file and click Rename.
    8.Change the file extension from .war to .zip and click Rename File.
    9.Select the .zip file and click Extract.
    10.Select the .htaccess file inside your public_html directory.

    Note:If you do not see the .htaccess file inside your public_html directory, perform the following steps:

    A.Exit cPanel's File Manager interface (Home >> Files >> File Manager)
    B.Refresh your cPanel interface.
    C.Click cPanel's File Manager interface (Home >> Files >> File Manager) and select the Show Hidden Files (dotfiles) checkbox.
    D.Click Go.

    11.Click Edit.
    13.Click Edit in the Text Editor interface.
    13.Enter the following text in the text box:
    A.SetHandler jakarta-servlet
    B.SetEnv JK_WORKER_NAME ajp13

    14.Click Save Changes.
    15.Access your Java application with the http://example.com/exampledirectory/...avaapplication URL.

    Notes:
    epresents your domain name.
    exampledirectory represents the Java application's directory.
    examplejavaapplication represents the Java application's name


    Your Java applications are ready to use.


    Regards,
    Dexter
    http://webhosting.uk.com
Working...
X