How to deploy java project on Java Hosting?

Deploy Java Project on Java Hosting

The process of java project deployment using cPanel is one of the easiest way to host the java project on Java Hosting Server. Follow the steps given below to host your java application on java hosting server with the help of cPanel and Private JVM Plugin.

Login to cPanel:

Log in to cPanel using cPanel Username and Password given by java hosting provider.

In other way Login to MediaStroke account, click on Services, then Click Active Button which is in front of your Java Hosting Service. On Next Page Click Login to cPanel link from left side bar.

Login to MediaStroke -> Services -> My Services -> Active -> Login to cPanel.

web application server

Install Apache-tomcat with a version of your choice

Go to the Private JVM icon from cPanel and install apache server with version of your choice which is useful to deploy java project.

Login to cPanel -> Software -> Private JVM -> Apache-tomcat & version

 java web application

Start, Restart and Stop Tomcat, Select JDK version, Domain Mapping, Deploy war

Start Apache Tomcat

After installation of Apache-tomcat server Click on Start to run tomcat server, there are stop and restart operations are also there, even you can check logs of tomcat.

Select JDK version

Select JDK(java development Kit) version as per your choice and Click on Apply Button to apply a version of JDK. You need to set same or higher version of JDK in Private JVM which you used to generate the project war file. For example the war file generated from JDK 1.7.0.62 then JDK version of server needs to be 1.7.0.62 or Higher.

Map Domain to Private JVM

Domain Mapping allows us to use port 80 for Java Application instead of PHP, here is the main role of Private JVM Plugin which map domain between php and java on same port number. Select the domain name or subdomain which you wish to use for java project deployment and then click on Assign button.

Enable/Disable Domain Mapping, Deploy war

Click on enable/disable link to enable Private JVM (Tomcat) which disable PHP (PHP set by default). If we click on enable/disable for one more time or second-time Private JVM (Tomcat) will be disabled and PHP will enable. Here the document root of PHP and java project are different. The document root of java project is given in Domain Mapping table.

Click on Deploy war link to upload war file.

To upload from file manage click on Link of Java Project path containing in Mapped Domain table which appears at bottom of the table. In these 2 ways we can upload war file.

 java web application

Run Java File

To run your java project on Java Hosting, enter the name of your-domain/project-name

Example : www.javawebx.pw/HelloWorld as shown in the following window.java web server

Root Directory

To make domain name as a default path of project save war file as ROOT.war and upload. ROOT directory will create automatic once we upload the ROOT.war which is the default directory of Tomcat Server. If we save war file with name like HelloWorld.war then the project path is domain-name/HelloWorld as per above screenshot.

Java Hosting at MediaStroke:

We recommend MediaStroke provide best java hosting services with Private JVM and cPanel. You can host your Java project with MySql Database with Apache-tomcat server. You can also host your JSP, servlet, Spring, Hibernet projects or any other Java web application. Best end support to run your website without any interrupt. Standard plan of MediaStroke for Java hosting include services:

Unlimited Storage Space, Bandwidth, E-mail Accounts

1 Website

Control panel and FTP

Unlimited subdomains

We also provide B2B Business Plan and Pro plan at affordable prices.

Refer Link: https://mediastroke.com/java-hosting

To host your dynamic java web project on Java Hosting server refer our next blog click on Link: https://mediastroke.com/blog/deploy-dynamic-java-project-on-java-hosting/

Leave a Reply

Your email address will not be published. Required fields are marked *