How to Deploy Java Applications

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:

    1. Exit cPanel's File Manager interface (Home >> Files >> File Manager)
    2. Refresh your cPanel interface.
    3. Click cPanel's File Manager interface (Home >> Files >> File Manager) and select the Show Hidden Files (dotfiles) checkbox.
    4. Click Go.
  11. Click Edit.
  12. Click Edit in the Text Editor interface.
  13. Enter the following text in the text box:

    1
    2
    SetHandler jakarta-servlet
    SetEnv JK_WORKER_NAME ajp13
  14. Click Save Changes.

  15. Access your Java application with the http://example.com/exampledirectory/examplejavaapplication  URL.

    Notes:

    • example.com represents your domain name.
    • exampledirectory represents the Java application's directory.
    • examplejavaapplication represents the Java application's name

Your Java applications are ready to use.

For Reference https://documentation.cpanel.net/display/CKB/How+to+Deploy+Java+Applications

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Configure POP for iPhone, iPad or iPod Touch

With POP3, your mail is saved in a mailbox on the remote server until you check your mail....

Configure Outlook 2007 IMAP or POP Account

For messages, users should set up an account within Outlook using either IMAP or POP3. IMAP is a...

Set up POP in Outlook 2003

POP is a protocol used to retrieve email messages from an Internet email server. Generally, when...

Setting our Nameservers for doman name registered with godaddy

If your domain name is registered with Godaddy, use the following instructions to update its...

how to change default page in cpanel

The skeleton directory ( Skeleton Directory: A directory that defines what files and...