This is a guest post by our friend and Jelatic beta user, Akbarsait. Below, he shows you how to deploy a Railo powerd CFML app using Jelastic. What did is pretty cool. He pulled all the Railo job from Indeed.com and put them all in one place.
Configuring and Running Railo Powered CFML Applications with Jelastic
I have been watching the Jelastic Cloud for almost a month and finally I gave it a try last week. The team behind Jelastic did all the ground work for us to get up and Running with Railo in their environment. I have configured Railo and created a sample job search application and hosted it in their Cloud in just 10 minutes time.
The follwoing configuration information I learned from our Community Geeks, Matt Woodward, Sean Corfield, Todd Rafferty, Jamie Krug, and the credit goes to them completely.
Before we move on just, just take a second to look at this video by the Jelastic team on Deploying Railo in Jelastic Cloud.
Installing Railo and Tomcat on the Jelastic Cloud:
- Signup for the Jelastic Cloud account and create your environment by adding Tomcat 6, JDK 6 and MySQL.
- Copy the latest Railo WAR file link from Railo download section.
- Under the Deployment manger, select Upload and enter the Railo WAR URL link. Wait until you see the railo.war is added to the Deployment Management section.
- Now Deploy Railo to the environment you have created in the first step. Wait for a minute and once it gets installed, click the browse button to Launch the Railo administrator. The URL would be like this yourenvironmentname.jelastic.servint.net (or, if you are using dogago/HE, yourenvironment.jelastic.dogado.eu).
- If you are not able to view the Railo Administrator and get any 502 or related errors, just refresh your environment and try again.
Configuring a Railo powered ColdFusion site:
- Click on the Config icon in your Tomcat setting and select the catalina.properties file under the server folder and add your Railo paths to common.loader class path and save it.
#Added the Railo *.JAR path
Note: Currently Jelastic allows us to upload new files, create files and folders under your /opt/tomcat/(catlina.home) of your environment. We could not able to perform any file or folder moving functionality during this beta. Hence I kept the Railo JAR files under the default installed location and appended this path to the existing common.loader class as below.
- Open web.xml file and paste the following contents under the , and sections and save it.
<!-- Railo Servlet section-->
<description>CFML runtime Engine</description>
<description>AMF Servlet for flash remoting</description>
<description>File Servlet for simple files</description>
<!-- Railo Servlet Mapping section-->
<!-- Added Index.cfm to welcome File list section -->
- Create a folder called railoweb under webapps directory and upload a index.cfm file with some dynamic contents in it.
- Create a custom domain or a CNAME entry with your existing domain and point it to the environmentname.jelastic.servint.net and add the CNAME entry to Custom domains section. I have created one called railoweb.akbarsait.com for this purpose.
- Open server.xml and add the following host entry to it and save.
<Host name="railotomcat.akbarsait.com" appBase="webapps"
unpackWARs="true" autoDeploy="true" xmlValidation="false"
<Context path="" docBase="/opt/tomcat/webapps/railoweb/" />
- Now its time to Restart the Tomcat and hit our application.
The sample application is available at railoweb.akbarsait.com. Hope this helps and share your experience about Jelastic Cloud and issues you come across while configuring applications.