Recently I've been getting a lot of questions from people about installing and configuring Railo on a number of systems. The general complaint I hear is that the documentation is somewhat lacking in this area. Of course, this is something that a large corporation with massive resources - such as Adobe - can be expected to score highly on (even though people complain about Adobe's installation and configuration documentation too).
Personally, I find Railo easy to install and configure but I'm fairly used to Java-based systems. That's not true for a lot of CFers so I figured I'd start a series of step-by-step posts going through a variety of installation and configuration scenarios for Railo. The two systems I have to experiment with are Mac OS X (Leopard) and Windows 7 Beta. I'm going to start with the very simplest development scenario and build up to a variety of production options.
First off, I'll point you at a very useful blog post where Gert Franz pulls together over a dozen blog posts that cover a broad variety systems.
Finally, on to the first and simplest installation I'm going to cover: Railo Express on Mac OS X.
Download
Go to the download page and under "Railo Express", pick the "All OS" zip file:
railo-3.0.2.001-railo-express-6.1.0-without-jre.zip
This puts a 30MB ZIP file in your Downloads folder. You can expand the ZIP file (by double-clicking it).
Starting Railo
In the folder created from the ZIP file, simply double-click the start file. The first time, it'll ask you to confirm you want to run an application you downloaded from the Internet. Then it will start the Terminal application and run a command to start Railo. A new application will start, called org.mortbay.start.Main. That's the Jetty web server - ignore it (and don't try to Quit it!). After six or seven seconds, the Terminal window will show Started SelectChannelConnector @ 0.0.0.0:8888 to indicate that Railo is running. Do not close that window or Quit Terminal (because that will stop the server). That's it - Railo is running. Yes, after just six or seven seconds!
Testing
Browse to http://localhost:8888/. You'll see the Railo test page!
A real application
I'm going to be using ColdBox as an example (because I'm learning ColdBox) so we'll download ColdBox. I picked the "bundle" and that gave me a 5.2MB ZIP in my Downloads folder. I double-clicked it and dragged the resulting coldbox_2.6.3 folder to the webroot folder in the Railo directory created above and then renamed it to coldbox since that's what the framework will expect. Then browse to http://localhost:8888/coldbox/dashboard/ and you'll the ColdBox dashboard login. The default password is coldbox so type that and login (I had to look it up via Google and it's in the FAQ). You'll notice it detects it's on Railo and puts a link to the Railo admin in the top navigation - very slick! We want to create a sample application so we'll click Tools and enter the following information:
Application Name railotest
Application Location {navigate to the Railo folder and create a new folder called test and then choose that folder}
We'll leave the rest of the options at their defaults and click Generate. It will ask us if we're sure we want to generate an application. Click OK. It will show you a list of files it generated - click on Open Application. You should see a new browser with a "Welcome to ColdBox" page.
Congratulations! You've installed Railo and started it. You've installed ColdBox and created a new application and it all works!
This is probably a good time to read My First ColdBox Application which explains what the dashboard generates and how that generated application works. It might be your first exposure to Luis's excellent documentation.
Stopping Railo
In the folder created from the ZIP file, simply double-click the stop file. The first time, it'll ask you to confirm you want to run an application you downloaded from the Internet. Then it will open a new Terminal window and run a command to stop Railo. Once both the original window and the new window show [Process completed], you can Quit Terminal.
Next time I'll look at a basic installation of Railo on Tomcat.
A quick tip: In the Railo webadmin, there is a section as "Applications" where you can deploy most of the known frameworks or application easily including ColdBox. :)
It is expected having some more application soon.
Thanks again!
Looking forward to follow your CFUnited session too. :)
Further, as it relates to your post and J2EE servers setups, what I find frustrating is understanding how to deploy applications. I am used to the JRun method, where you typically deploy the applications on the web listener (e.g., IIS or Apache), and not to the J2EE server itself. This method seems simple, especially when you want the application root outside of the main webroot. One creates a Virtual Directory on the Web Listener and a CF Mapping. With J2EE apps, I am finding little to no information on whether the same structure can work. There is plenty on doing what you did, which was deploy to the WAR root, and some on creating your own WAR/EAR deployments. Is the WAR/EAR deployments the only method, or is there a way to deploy the same way one currently does with IIS/Apache plus JRun/ColdFusion?
@Thomas, yes, I'll be covering deployment scenarios in this series because of differences like that.
looking forward to your apache/mod_coucho install...
:-)
I am also taking the opportunity to learn Railo and ColdBox at the same time. Will be posting some notes as well.


