Java Hosting - Quick Deployment Guide

Deploying your application is just a few steps away!

Deployment of a WAR on cPanel managed server (shared host / private JVM)

  1. Login to cPanel and create database, database user and assign user to database
    Note that both will have username_ prefix.
  2. Optionally, upload your database dump and load it with 'mysql' command line client $ mysql -u username_db1 -p username_dbuser1 < db1_dump.sql or using phpMyAdmin (link in cPanel). You may also enable 'Remote MySQL' in cPanel and the use remote mysql command line client [my_home_pc]$ mysql -h SERVER_IP_HERE -u username_db1 -p username_dbuser1 < db1_dump.sql or a GUI client like MySQL Workbench.
  3. Update database name, database username and password in your code in JDBC string or in database connection setting in Eclipse, NetBeans or similar and rebuild your WAR. Use 'localhost' as database host name. You may also unzip the WAR, modify database credentials (for example in hibernate.cfg) and create WAR back with 'jar' command. [~]$ mkdir -p yourapp && cd yourapp && jar xf ../yourapp.war
    [~/yourapp]$ nano WEB-INF/classes/hibernate.cfg.xml
    [~/yourapp]$ jar -cvf ../yourapp.war *
  4. Upload the WAR with FTP (e.g. Filezilla) to ~/appservers/apache-tomcat-X.X.X/webapps directory. If you want to have your app reachable at root URL please upload it as ROOT.war.
  5. Check http://username.javaprovider.net/yourapp (or http://username.javaprovider.net/ if you uploaded ROOT.war) and enjoy :)

 

Live Demo Panel (user:demo, password:demo2011)

Go Live in Just 10 minutes!