{"id":101,"date":"2018-10-22T16:43:58","date_gmt":"2018-10-22T11:13:58","guid":{"rendered":"https:\/\/mediastroke.com\/blog\/?p=101"},"modified":"2022-06-06T11:53:02","modified_gmt":"2022-06-06T06:23:02","slug":"private-jvm-to-deploy-java-web-application","status":"publish","type":"post","link":"https:\/\/mediastroke.com\/blog\/private-jvm-to-deploy-java-web-application\/","title":{"rendered":"Private JVM – deploy java project on cPanel"},"content":{"rendered":"\n
The process of java project deployment using PrivateJVM 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.<\/p>\n\n\n\n
Log in to cPanel using cPanel Username and Password given by java hosting provider.<\/p>\n\n\n\n
In other way Login to MediaStroke account, click on Services, <\/strong>then Click Active Button <\/strong>which is in front of your Java Hosting Service. On Next Page Click Login to cPanel link <\/strong>from left side bar.<\/p>\n\n\n\n Login to MediaStroke -> Services -> My Services -> Active -> Login to cPanel.<\/p>\n\n\n <\/a><\/span><\/p>\n \u00a0<\/p>\n Go to the Private JVM<\/b> icon from cPanel and install apache server with version of your choice which is useful to deploy java project.<\/p>\n Login to cPanel -> Software -> Private JVM -> Apache-tomcat & version<\/span><\/span><\/span><\/p>\n <\/a><\/p>\n Start Apache Tomcat <\/b><\/span><\/p>\n After installation of Apache-tomcat server Click on Start<\/b> to run <\/span>tomcat server, there are stop and restart operations are also there, even you can check logs of tomcat. Select JDK(java development Kit) version as per your choice and Click on Apply Button <\/b>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. 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.<\/span> Select the domain name or subdomain which you wish to use for java project deployment and then click on Assign button.<\/span><\/p>\n 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\u00a0Private 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. To run your java project on Java Hosting, enter the name of your-domain\/project-name<\/p>\n Example : www.javawebx.pw\/HelloWorld as shown in the following window.<\/span><\/a><\/p>\n Root Directory<\/b><\/span><\/p>\n 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.<\/p>\n MediaStroke java hosting solution switch to Dedicated Tomcat<\/strong><\/a> from Private JVM to provide best java hosting services with cPanel. You can host your Java project with MySql Database with Apache-tomcat server. You can also host your JSP, servlet, Spring, Hibernate 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:<\/p>\n Unlimited Storage Space, Bandwidth, E-mail Accounts, Databases<\/p>\n 1 Website<\/p>\n Control panel and FTP<\/p>\n Unlimited subdomains<\/p>\n Refer Link:\u00a0https:\/\/mediastroke.com\/java-hosting<\/a><\/p>\n To host your dynamic java web project on Java Hosting server refer our next blog click on Link:<\/p>\nStart, Restart and Stop Tomcat, Select JDK version, Domain Mapping,\u00a0<\/b><\/span>Deploy war<\/b><\/h2>\n
<\/span><\/p>\nSelect JDK version <\/b><\/span><\/h4>\n
<\/span><\/p>\nMap Domain to Private JVM <\/b><\/span><\/h4>\n
Enable\/Disable Domain Mapping, Deploy war<\/span><\/b><\/span><\/h4>\n
<\/span><\/p>\n
<\/span><\/p>\n
<\/span><\/p>\n<\/a><\/h2>\n
Run\u00a0<\/b><\/span>Java File<\/b><\/h2>\n
Java Hosting at MediaStroke:<\/strong><\/h4>\n
Java hosting web application deployment using cPanel<\/a><\/blockquote>