Jan 30 2015

Hello Lucee - New open Source CFML Engine

Posted by AJ Mercer at 4:05 am - Categories: CFML | Lucee

Dec 1 2014

Blade Runner

Posted by AJ Mercer at 9:55 am - Categories: Scouts

Nov 27 2014

MS-SQL Server with Windows Authentication with Railo

Posted by AJ Mercer at 3:07 pm - Categories: CFML | Railo

Nov 2 2014

Belt Sander Racing

Posted by AJ Mercer at 6:34 pm - Categories: What cracks me up

Dec 7 2013

Multiple Railo Servers on one Tomcat install

I have been wanting to run multiple Railo servers on one machine (distinct from multiple web sites on one server). For example, a dev, test, and production Railo servers, or Public and Internal Railo servers. Earch Railo server would run on it's own port.

After messing around with WildFly, Glassfish and Geronimo, I discovered that Tomcat itslef can run multiple instances. Then I found this gem: Tomcat Instance Manager - bat files for windows that copy required directories and creats a bat file with environment variables.

I have now created a standard Railo directory structure that I can copy that has the Railo web.xml and server.xml files. So you copy and rename this directory, edit some files and an new environment is ready, well almost. You will need to get the Railo JARs and drop them into the lib folder. I download the Railo WAR and extract the lib and 'Welcome to Railo' app (this also has web.xml and server.xml). You can do this first and put into the template directory so it is set up for all copies. I kept it out to keep the download small. Also, for may want to drop the next Bleeding-Edge version into a new instance.


To start off, you need to get yourself Tomcat and save to your server. No need to run the service install, you just need the bin and lib folders.

Then you need a directory to hold all the server instance directories; I call mine servers. This is where you drop the Railo Directory Template (github URL here). There is also a directory for Tomcat Instance Manager.

The magic happens with environment variables. CATALINA_HOME points to the tomcat directory, eg d:\tomcat7. CATALINA_BASE points to the Tomcat instance directory, eg %CATALINA_HOME%\servers\railo8808. This is set up in the bat files. The Tomcat Instance Manager creats a bat file for each instance. This bat file accepts arguments to start and stop, and also create a windows service, and arguments to stop and start this.

Posted by AJ Mercer at 4:59 pm - Categories: Railo | Tomcat

Nov 25 2013

Railo directory placeholders

Railo has predifined directory placeholders that can be used in your code or servlet config.

In code:

{railo-web}: #expandPath("{railo-web}")#<br />
{railo-server}: #expandPath("{railo-server}")#<br />
{temp-directory}: #expandPath("{temp-directory}")#<br />
{home-directory}: #expandPath("{home-directory}")#<br />
{web-root-directory}: #expandPath("{web-root-directory}")#<br />
{system-directory}: #expandPath("{system-directory}")#<br />

Attach a log file to email

<cfmailparam file="#expandPath("{railo-web}")#\logs\GoogleBot.log" >

See details on using Railo directory placeholders in config files.

Posted by AJ Mercer at 10:03 am - Categories: Railo

Oct 20 2013

Giant Pumpkin 2014

Planted 2 of the seeds I bought at the Dwellingup fate and 3 seeds that I saved from my big pumpkin.

I left my big pumpkin too long and it started to go mushy, so I threw it into the garden. The other I notice what looked like mellon plant leaves. On closer inspection today I saw that there where a lot trying to poke out of a big pile of seed when the mellon was - no sign of the rest ok the pumpkin.

Posted by AJ Mercer at 10:36 am - Categories: Giant Pumpkin