BuycPanel Blog

BuycPanel Blog

Latest news and updates

How to Deploy a Java Application

Posted by Allura on 17 07 2018.

An Overview
A variety of Java Applications come to the user equipped with a Web Application Archive or WAR package, while some do not. In the case that such packages are provided a user may then proceed to deploy the given application. The steps outlined next are designed to help a user to do exactly that. However if a Web Application Archive process isn’t available to the end user he or she should seek the help of their systems administrator to carry out the technicalities of the deployment process.

Deploying a Java Application – Steps To Follow
The following section assumes that a user has been provided with a WAR package along with the given Java Application. The user may successfully launch or deploy the application by following the steps outlined below:

 

 	The user must navigate to his or her cPanel’s File Manager This interface may be located in the Files section.
 	In…

An Overview

A variety of Java Applications come to the user equipped with a Web Application Archive or WAR package, while some do not. In the case that such packages are provided a user may then proceed to deploy the given application. The steps outlined next are designed to help a user to do exactly that. However if a Web Application Archive process isn’t available to the end user he or she should seek the help of their systems administrator to carry out the technicalities of the deployment process.

Deploying a Java Application – Steps To Follow

The following section assumes that a user has been provided with a WAR package along with the given Java Application. The user may successfully launch or deploy the application by following the steps outlined below:

 

  • The user must navigate to his or her cPanel’s File Manager This interface may be located in the Files section.
  • In case this section or interface cannot be located the user can steer to the public_html
  • The next step is to open a new folder by clicking on an option of the same name or name +Folder.
  • Having created this new folder the user has to then enter an appropriate name. Having done so he or she must select this folder, locating it at the focal point of the interface.
  • The user must then select the option to Upload a file and must then select the Choose File option to proceed.
  • Then one must browse and locate the Java WAR file, elect to Open it and then convert the file extension from .war to .zip.
  • Having successfully converted it the user must select the Extract
  • One then has to return to the public_html directory and choose .htaccess
  • In certain cases when older versions of cPanel or WHM are being used, the aforementioned option is not displayed. In such situations the user must elect to reveal the hidden files in order to locate it.
  • Once that is completed he or she has to select the Edit option available on the interface of the Text Editor. Having done so the user has to simply input the following text in the text box that appears –
  • SetHandler jakarta-servlet
  • SetEnv JK_WORKER_NAME ajp13
  • Having done so, one must choose to save the changes made.

 

A Final Note

Having completed the above steps a user may then access his or her ready-to-use Java Applications using the following URL – http://example.com/exampledirectory/examplejavaapplication 

The first part of the URL refers to the users domain and the second part to the Java directory while the final part refers to the respective application.