How To Get MangoBlog Working On Railo

Published: {ts '2012-03-27 00:00:00'}
Author: Steven Neiland
Site Url: http://www.neiland.net/article/how-to-get-mangoblog-working-on-railo/

I recently setup a mangoblog site on my railo server for a friend. At first glance everything seemed fine, but after clicking around I started to get errors. A quick internet search revealed that I had to modify my web.xml file to add additional servlet mappings.

Add Mappings To Web.xml

Open up the web.xml file. The below command is for linux systems, for windows just open with notepad.

vi /[path]/[to]/railo/tomcat/conf/web.xml

Scroll down and add the following to the servlet mappings section.

CFMLServelet /page.cfm/* /post.cfm/* /archives.cfm/* /feeds.cfm/* /author.cfm/*

Save your changes and restart railo.

Regex Wont Work

Looking at the patterns of the urls you would think you could use regex. For some reason though I could not get it to work. Here is my attempt, if anyone who uses tomcat can tell me how to get this pattern to work in web.xml or what im doing wrong I would appreciate it.

CFMLServelet /([a-zA-Z0-9]+).cfm/*

No Function getDataAccessFactory

When you first try to login to mangoblog you may get an error like this.

Error: onRequestStart: component [Mango] has no function with name [getDataAccessFactory]

I dont know what causes this but all you need to do to fix this is simply restart Railo.