Just installed Railo but SES URL's not working

To fix this issue please see the below article byKevan Stannard

http://domain/index.cfm/wiki/dashboard

This causes an error such as:

HTTP Status 404 - /index.cfm//wiki/dashboard
type Status report
message /index.cfm//wiki/Dashboard
description The requested resource (/index.cfm//wiki/dashboard) is not available.
Apache Tomcat/6.0.20

The default install of Railo I am using enables the handling of URLs such as:

*.cfm
*.cfml
*.cfc

But we need to also set up a handler for:

/index.cfm/*

These mappings are handled in the tomcat web.xml file.

The default settings are:

 

<servlet-mapping>
	<servlet-name>CFMLServletservlet-name>
	<url-pattern>*.cfmurl-pattern>
servlet-mapping>

<servlet-mapping>
	<servlet-name>CFMLServletservlet-name>
	<url-pattern>*.cfmlurl-pattern>
servlet-mapping>

<servlet-mapping>
	<servlet-name>CFMLServletservlet-name>
	<url-pattern>*.cfcurl-pattern>
servlet-mapping>

We need to add one more that reads:

<servlet-mapping>
	<servlet-name>CFMLServletservlet-name>
	<url-pattern>/index.cfm/*url-pattern>
servlet-mapping>

After restarting Railo, the SES URLs should start working.

This technique should hopefully work for any applications that use this URL technique, including Mango Blog, which will require a few extra similar mappings.

This entry is based on a comment by Tony Garcia on a Railo entry by Sean Corfield:

View source:http://blog.stannard.net.au/2010/04/17/ses-urls-in-railo-with-tomcat/

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

CFML Compatibility

Railo tries to adhere the CFML standard as good as possible, Still there are some differences...

Frameworks

Here's a list of the most important CFML frameworks that have been tested successfully with Railo...

Applications

We have tested several applications for the functionality with Railo 3.0. Here's a list of the...

Railo Administrator

Railo comes with two kinds of administrators. The Railo Server Administrator and the Railo Web...

Requesting site(s) to use Railo

As our current systems do not allow automatic creation of the Railo service if you need to add a...