{ Akbarsait NoorMohamed }

Configuring and Running Railo Powered CFML Applications on Jelastic Cloud

Jan 25, 2012
     #coldfusion   #learning  
4 minutes

I have been following the Jelastic Cloud for a month and wanted to try their offering. The team behind Jelastic did all the ground works for us to get up and Running with railo in their environment. I configured railo and created a sample job search application railoweb.akbarsait.com and hosted it in their Cloud that required only 10 minutes.

The below configuration information are one which I read and learned from CFML community geeks Matt Woodward, Sean Corfield, Todd Rafferty, and Jamie Krug and the credits are going to them completely.

Before we proceed, follow the video by the Jelastic team on Deploying Railo in Jelastic Cloud.

Installing Railo and Tomcat on 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 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.

  • Deploy railo to the environment you created in the first step. Wait for a minute and once installed, click browse button to launch the railo administrator. The URL link is below.


Configuring and Running Railo Powered ColdFusion Applications on Jelastic Cloud

  • In case if you are unable to view Railo Administrator and getting any 502 or related errors then go and 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, generate files/folders under /opt/tomcat/(catlina.home) of your environment. File/folder moving functionality is unavailable 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 “servlet”,“servlet-mapping” and “welcome-file-list”" sections and save it.
<!-- Railo Servlet section-->
	<description>CFML runtime Engine</description>
		<description>Configuraton directory</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 or issues while configuring applications.


Nathan Miller on 2012-02-09
This link isn't working: http://railoweb.akbarsait.com/

Akbarsait on 2012-02-09
@Nathan It's working now please check.

Salvatore Fusto on 2012-02-23
Thank you Akbarsait, very usefull post.

Akbarsait on 2012-02-23
@Salvatore - Glad to help.

Nolan Dubeau on 2012-06-06
Hi, I've been looking at running CF on Jelastic. One thing I can't seem to find is after the topology and CF engine are setup how do you deploy/upload your site? Is the only way to do that by deploying a war, or is there any type of command line tool similar to what CloudBees has - cloudbees.com Thanks! Nolan

(Comments migrated from previous blog engine.)