404 Error on REST URL, Coldbox 4.3.0, Lucee 5.2.4

149 views
Skip to first unread message

Harkirat

unread,
Oct 15, 2017, 10:34:41 PM10/15/17
to ColdBox Platform
Hi All,
  I downloaded Lucee 5.2.4 and Coldbox 4.3.0 and then downloaded a sample app template called SimpleCrudWithREST and put the folder inside my root (see here).
When I browse to http://localhost:8888/SimpleCrudWithREST/index.cfm the page loads fine (see here) but when I click on any of the REST links I get a 404 error (see here). 
This does not happen if I use the Commandbox server. Can anyone tell me what is wrong with my Lucee configuration that might be causing this?

Thanks!



Brad Wood

unread,
Oct 15, 2017, 10:41:28 PM10/15/17
to col...@googlegroups.com
SES urls won't work in a subdirectory on stock tomcat. Adobe uses a modified version of Tomcat to support this (jrun supported it originally too) and we've mixed some special magic pixie fairy dust into CommandBox so it works there as well.  Note, you'll need to tweak the rewrite rules if you want them to work on a sub dir too.

I would just recommend using CommandBox for all your servers :)



Sent from my Sprint Samsung Galaxy S8.
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/4d1d2548-ce96-4b67-83d8-baf60983ace2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ancient Programmer

unread,
Oct 15, 2017, 10:45:52 PM10/15/17
to ColdBox Platform

Harkirat

unread,
Oct 16, 2017, 1:06:56 PM10/16/17
to ColdBox Platform
Ok then Commandbox it is! Thanks for sprinkling the magic pixie due on it ! :)

Harkirat

unread,
Oct 16, 2017, 1:07:42 PM10/16/17
to ColdBox Platform
That URL did not work either. Just going to use Commandbox instead and avoid the whole issue. Thanks!

br...@bradwood.com

unread,
Oct 16, 2017, 1:53:20 PM10/16/17
to col...@googlegroups.com
For what it's worth, that non SES url should have worked on a stock Lucee install.  I'm curious if you got the same 404 error message or another one.  
 
Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.

Harkirat

unread,
Oct 16, 2017, 5:11:22 PM10/16/17
to ColdBox Platform
Hi Brad,  
    It just routes me back to the http://127.0.0.1:8888/SimpleCrudWithREST/index.cfm/contacts/add page where it throws the 404 error when I go to http://127.0.0.1:8888/SimpleCrudWithREST/index.cfm?event=contacts.add. Here is my entire Lucee folder if you would like to check it out Lucee

br...@bradwood.com

unread,
Oct 16, 2017, 5:18:01 PM10/16/17
to col...@googlegroups.com
If it redirects you, then that means the URL is probably working fine.  But since you have SES enabled in your app, the redirect is kicking you back over to an SES url.  And, of course, SES URLs aren't going to work.  
--------- Original Message ---------

Harkirat Singh

unread,
Oct 16, 2017, 5:30:44 PM10/16/17
to col...@googlegroups.com
Yes when I turn off SES in Coldbox.cfc the link does work fine. Thanks.

You received this message because you are subscribed to a topic in the Google Groups "ColdBox Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/coldbox/uSdvtXospUs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to coldbox+u...@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages