Download Tomcat
Go to the Tomcat 6 download page and select the appropriate binary distribution of the "Core". I'm going to use the 'zip' version for Mac OS X this time (I will come back to the Windows version later when I summon up the courage to look at IIS7). If I was targeting Linux, I'd use the 'tar.gz' version but the only difference is how you extract the files.
This puts a 6.3MB ZIP file in your Downloads folder which you can expand by double-clicking it. At this point, you need to fire up Terminal and start working on the command line since the startup/shutdown shell scripts and not executable directly in Finder. You'll find Terminal in Applications > Utilities - I suggest adding it to your dock since you'll be using it a lot.
In Terminal, navigate to the bin folder inside the expanded Tomcat directory, e.g.,
Now we'll make the various shell scripts executable:
Now we can start Tomcat (as with the 'Express' version of Railo, we're just trying to get it up and running right now - we'll move it somewhere more appropriate in a later blog post).
Starting Tomcat
If you're still in the bin folder, you can start Tomcat by typing:
If it complains it cannot find ./catalina.sh, you didn't get the 'chmod' command right (see above).
Testing Tomcat
Browse to http://localhost:8080/. You should see the Tomcat welcome page (you can't access the manager or admin consoles without doing some initial configuration - see the next post in this series).
Now we need to get Railo installed and running...
Download Railo
Go to the download page and under "Railo Custom", pick the "war" (web archive) file:
railo-3.0.2.001.war
I had to right-click > Download Linked File (otherwise I got a browser full of data!).
In the Finder rename the file to railo.war (it'll make life easier when we test things below). Now drag railo.war and drop it into the webapps folder inside the expanded Tomcat folder. After a couple of seconds, you'll see a new railo folder appear next to the existing manager, ROOT and other folders. Tomcat has automatically deployed the web archive for you! You can now remove railo.war or at least move it somewhere else in case you need it again.
Testing Railo
Now browse to http://localhost:8080/railo/ and you should see the familiar Railo test page. You can now do all the usual stuff with Railo at this point - see previous posts.
Stopping Tomcat/Railo
Go back to your Terminal window and make sure you're still in the bin folder (the pwd command will print your current 'working' directory), then type:
If you want to be able to just double-click the startup script from the Finder, rename it so it has no extension. The Finder will confirm you really want to remove the extension - click Remove. You can stop Tomcat by switching to the org.apache.catalina.startup.Bootstrap application (using Cmd-Tab) and quitting it like any regular application - or right-click > Quit on its dock icon.
In the next part of this series, we'll get Railo running on Tomcat without needing the /railo prefix on URLs (the 'context root' in Servlet-speak) and look at ways to configure Tomcat with Apache so you can use this setup for 'real' websites.
Everything was easy and smooth to get installed but Tomcat (at least the Aptana Cloud version) doesn't handle SES URLs, which makes serving up pages for applications like BlogCFC and frameworks such as ColdBox.
I've posted a couple blog entries on my experience thus far: craigkaminsky.blogspot.com
I'd be curious to know if you had any issues with SES-style URLs as you go forward.
http://corfield.org/entry/Railo_for_Dummies_Part_IV_Appendix
@Sean: I'll check out the Appendix later today (need a break from URL rewriting after this morning :).
I'm going to try and see what I can do on the Cloud with regards to getting access to Apache to connect with Tomcat.
Thanks, again!
url-pattern="*.cfm/*" url-pattern="*.jsp/*"
I am not sure if they will fix it or not, that is up to them. I do not worry about it because usually, I use Apache in front of Tomcat and use mod_rewrite.
Following what you did on part I and II, I installed ColdBox within ~/Downloads/apache-tomcat-6.0.18/webapps/railo I was able to run the Dashboard and created an application, but I got a 404 when I attempted to access the Railo Administrator. Is that supposed to happen? If not what do we need to do to get it to work?
Thanks,


