I am working through learning ColdBox Relax. I got everything working, but when I click on the Relax link, I get an error:
Application Execution ExceptionError Type: HandlerService.EventHandlerNotRegisteredException : [N/A]
Error Messages: The event: relax/logs is not valid registered event.
Apparently, Railo does not like this URL:
It does work with this one colon ( instead of slash(/).
Actually, I couldn’t get anything to work until I put the following line in Routes.cfm
Is this fix causing the second problem?
I’m running Railo Express (3.3) with Jetty (7.2) and ColdBox 3.5.
My big question is: Is there a guide of recommended best practices and settings for ColdBox and Railo?
These little Railo glitches are really slowing my ColdBox learning curve, so thanks for any suggestions!
I think the issue is the index.cfm/* routing that is not possible in Jetty.
Basically, the majority of samples and apps use the SES or search engine safe URLs out of the box. You turned it off, but some apps might not work if they are coded for SES only.
That would be the only gotcha I have seen via Railo Express is the SES gotcha. Railo with Resin is no issues for that too though. Or you could use Apache for mod_rewrite.
Luis F. Majano
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
IECFUG Manager: http://www.iecfug.com
Social: twitter.com/lmajano facebook.com/lmajano
If this is the issue, it can be resolved but updating your webdefault.xml (in the etc folder of jetty)
Thanks Luis and AJ!
AJ, I want to try your idea, but webdefault.xml has a bunch of stuff in it. Is this the right section?
Should the one you suggested go first or last in the list?
anywhere in the list is fine
It looks like Jetty does not support multiple wildcard filters
I added the line AJ suggested, but still no luck.
This works: http://dev.learning.com:8888/adminMSH/index.cfm?event=General.index
This does not work: http://dev.learning.com:8888/adminMSH/index.cfm/General
Do any of you have any suggestions where I can learn more about how to make this work in Jetty (For development, I’d really prefer the lightweight server). I realize that the problem is that I’m ignorant on Jetty and it’s configuration. I’m looking for tips on how to learn Jetty and troubleshoot the problem.
those changes will require a Jetty restart - not just a Railo restart
-> this is not enough in your case, try that:
like AJ mentioned, jetty does not seem to support multiple wildcard, cause the pattern .cfm/ should match, so you have to define such a mapping for every app
Thanks phal – That was the missing piece. I get it now. I needed to do /adminMSH/index.cfm/* just as you suggested.