Search code examples
apachetomcatrailocfml

What would cause a tomcat 404 with Railo 4 and mod_cfml for SES urls like /index.cfm/event/main.home?


I'm getting:

HTTP Status 404 - /admin/index.cfm/event/main.welcome

type Status report

message /admin/index.cfm/event/main.welcome

description The requested resource is not available.
Apache Tomcat/7.0.37

But it works fine when I go to:

/admin/index.cfm?event=main.welcome

OR

/admin/event/main.welcome (thanks to htaccess)

But since this is using MOD_CFML I can't use HTACCESS to override url's that have .cfm in them.

I can't find this anywhere on the web... :-/


Solution

  • You need to add this to your web.xml under the "Basic SES Mappings":

    <url-pattern>/admin/index.cfm/*</url-pattern>
    

    As far as I know, there's no way to set it up to handle dynamic sub folders, you'd have to add one of these for each sub folder that you have pages like this in.