I am trying to run a Java Application on OpenShift Online by deploying a war file to my gear. Below are the steps that I followed to try to deploy it.
- I created the WAR file for my application with the changed
connection url as
jdbc:mysql://${OPENSHIFT_MYSQL_DB_HOST}:${OPENSHIFT_MYSQL_DB_PORT}/affablebean
and updated the username and password as per open shift MySQL credentials. - Renamed the war file as ROOT.war.
- I am using FileZilla to deploy the WAR file. I placed the ROOT.war file in the ~/app-root/dependencies/jbossews/webapps/ folder.
- Then I restarted the application server using the command
ctl_all restart
But when I try to access my web application via the url I am getting the same "Welcome to your JBossEWS (Apache/Tomcat) application on OpenShift".
Why this is happening? Is there any way to track whether the WAR file is deployed or not?. Or tomcat server file?
Please help me.Had i followed the above mentioned step correctly or not?