Looks like the routes.cfm file cannot be found via the cfinclude. Seems like a pathing issue. Look in your coldbox.xml for the ses interceptor and the configFile property.
Ok I am stumped, I tried dropping it into a cfusion instance and it too has a problem. It is a little more descriptive, in that it does say it can’t load the routes.cfm file. However I am at a loss to get this to work. I have looked into the documentation and I am maybe confusing myself.
So if I drop a coldbox application into a J2EE instance (CF / openbd), is it AppMapping the only thing I need to change?
It is all about pathing. The routes by default point to “config/routes.cfm”. J2ee is very picky on pathing, so I would use the correct absolute pathing according to where my application lives.
I would suggest to do the follwoing. Comment out the ses interceptor and just get the app running by adding the AppMapping to the location in your j2ee environemnt. ONce that is working, uncomment the ses and alter the pathing location of the routes.cfm.
The problem isn’t just openBD, if I have a cfusion context instance of coldfusion 8. I get a different error, but it isn’t related to anything to do with paths. It becomes the routes, not using cgi.context_path I assume.
As for SES, you need to change also the link there Andrew. The baseURL, that is how the rewrite engine will link up. You are seeing that mismatch, because you need to add the context there also. You have full control on how your urls get created.
The coldbox.xml is standard, with the ses from your examples. There is no AppMapping, is it screws up in Coldfusion running in an instance, remove it and its fine. Except the url’s.
The routes again is stock standard from your examples except for.
In Coldfusion 8, running under tomcat. I have setup a mapping as follows
/cfusion8 – maps to the root location that files will be served.
There is no AppMapping defined, and the application runs as expected until I hit a url mapping. The thing is I wasn’t thinking, and the error is a tomcat error as such, so it looks like my standard tomcat config is not right for tomcat. Would that be right?
Otherwise it works, just not SeS side of things. Anyone?
HTTP Status 404 - /cfusion8/index.cfm/spaces/andrew-scott/blog/
This came up at the Railo list a few days ago. Tomcat does not support SES urls I believe. There is something that needs to be done to Tomcat, in order for SES urls to work with it. You can search in the Railo mailing list for it, but I believe this might be the case.