[ColdBox 3.5] Railo, Jetty, and ColdBox URLs

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:
http://dev.learning.com:8888/adminMSH/index.cfm?event=relax/logs

It does work with this one colon (:slight_smile: instead of slash(/).
http://dev.learning.com:8888/adminMSH/index.cfm?event=relax:logs

Actually, I couldn’t get anything to work until I put the following line in Routes.cfm

setEnabled(false);

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!

Hi Clarke

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
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
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)

add
/index.cfm/*

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?

CFMLServlet *.cfm *.cfml *.cfc *.cfm/* *.cfml/* *.cfc/*

Should the one you suggested go first or last in the list?

Clarke

anywhere in the list is fine

It looks like Jetty does not support multiple wildcard filters :frowning:

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.

Thanks!

Clarke

Hmm, I’ll download and mess around as well Clarke

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

those changes will require a Jetty restart - not just a Railo restart

/index.cfm/*

-> this is not enough in your case, try that:

/adminMSH/index.cfm/*

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.

Thanks all!

Clarke

beauty!

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano