[ColdBox 3.5] Railo, Jetty, and ColdBox URLs

83 views
Skip to first unread message

Clarke Bishop

unread,
May 28, 2012, 7:11:47 PM5/28/12
to col...@googlegroups.com
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 Exception

Error 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(/).
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!

Luis Majano

unread,
May 28, 2012, 7:32:29 PM5/28/12
to col...@googlegroups.com
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.
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

AJ Mercer

unread,
May 28, 2012, 8:24:14 PM5/28/12
to col...@googlegroups.com
If this is the issue, it can be resolved but updating your webdefault.xml (in the etc folder of jetty)

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

Clarke Bishop

unread,
May 29, 2012, 3:30:14 PM5/29/12
to col...@googlegroups.com
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?

  <servlet-mapping>
    <servlet-name>CFMLServlet</servlet-name>
    <url-pattern>*.cfm</url-pattern>
    <url-pattern>*.cfml</url-pattern>
    <url-pattern>*.cfc</url-pattern>
    <url-pattern>*.cfm/*</url-pattern>
    <url-pattern>*.cfml/*</url-pattern>
    <url-pattern>*.cfc/*</url-pattern>
  </servlet-mapping>

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

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

To unsubscribe from this group, send email to coldbox-unsubscribe@googlegroups.com

For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-unsubscribe@googlegroups.com

For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

AJ Mercer

unread,
May 29, 2012, 6:17:11 PM5/29/12
to col...@googlegroups.com
anywhere in the list is fine

It looks like Jetty does not support multiple wildcard filters :-(


To unsubscribe from this group, send email to coldbox-u...@googlegroups.com

For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

Clarke Bishop

unread,
May 30, 2012, 11:25:07 AM5/30/12
to col...@googlegroups.com
I added the line AJ suggested, but still no luck.



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

Luis Majano

unread,
May 30, 2012, 11:48:54 AM5/30/12
to col...@googlegroups.com
Hmm, I'll download and mess around as well Clarke
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com

AJ Mercer

unread,
May 30, 2012, 8:23:34 PM5/30/12
to col...@googlegroups.com
those changes will require a Jetty restart - not just a Railo restart


To unsubscribe from this group, send email to coldbox-u...@googlegroups.com

For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

phal

unread,
May 31, 2012, 4:43:26 AM5/31/12
to col...@googlegroups.com
<url-pattern>/index.cfm/*</url-pattern>

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

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

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

Clarke Bishop

unread,
Jun 1, 2012, 5:16:06 PM6/1/12
to col...@googlegroups.com
Thanks phal -- That was the missing piece. I get it now. I needed to do <url-pattern>/adminMSH/index.cfm/*</url-pattern> just as you suggested.

Thanks all!

    Clarke

Luis Majano

unread,
Jun 1, 2012, 5:28:54 PM6/1/12
to col...@googlegroups.com
beauty!
--
Reply all
Reply to author
Forward
0 new messages