Re: Railo Express

37 views
Skip to first unread message

Adam Tuttle

unread,
Feb 26, 2013, 10:25:31 AM2/26/13
to taffy...@googlegroups.com
Hi Richard,

Here's a few things to try:

In the dashboard, hit the Reload API Cache button in the upper right. This will re-scan your resources.

I'm not sure that Jetty supports the URL format "index.cfm/whatever" which is what Taffy uses by default. Thanks to a contribution from Marco Betschart, we now support the url format: "index.cfm?endpoint=/test" (see the list of variables.framework settings in the wiki to customize this)

If the above doesn't help, I would recommend at least trying your API on an instance of Railo on Tomcat. Tomcat doesn't support wildcard mappings (so no index.cfm/* without adding a specific mapping for every api you create) but several people on this list use Taffy + Railo + Tomcat, so they should be able to help you!

HTH,
Adam

Richard MH wrote:

Dear all

Having struggled with the new railo rest interface only to discover,
eventually, that I will have to wait for a later version for it to
output xml, I thought I should try taffy.

I have what I think is probably a vanilla taffy install at webroot/api
with a webroot/api/resources/ and webroot/api/taffy/<the complete
taffy 1.2.0>
and in resources I put one resource <cfcomponent
extends="taffy.core.resource" taffy_uri="/test"> etc. as per
https://github.com/atuttle/Taffy/wiki/So-you-want-to:-Create-a-dead-simple-CRUD-API


This is on railo-express-4.0.3.006-jre-win32

So... if I go to http://127.0.0.1:8888/api then I get the taffy
dashboard as expected.

However - I assume below where it says Resource | URI | Methods there
should be a list of available resources in my API - very handy, but
there are none in any of my experiments
And if I try to access the resource I made at
http://127.0.0.1:8888/api/index.cfm/test then I get HTTP ERROR 404
Problem accessing /api/test. Reason: Not Found Powered by Jetty://

Obviously something fundamentally wrong, but what?
As I understand, no mapping is necessary for where I've put taffy,
it's not throwing any railo errors
I imagine this might be a jetty config issue?
I don't mind using an older version of railo if this problem is
something with v4, but it does have to be Railo Express because
eventually I want my app to be very simply portable in a zip file.

Can someone help?

Thanks

Richard

--
You received this message because you are subscribed to the Google
Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to taffy-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Richard MH

unread,
Feb 26, 2013, 1:59:49 PM2/26/13
to taffy...@googlegroups.com
Refreshing the app definitely makes no difference however I'll try the other things you suggest

Thankyou for your help.

Richard

BTW - my earlier statement about the railo rest interface not producing home-built xml wasn't entirely true - I've since discovered the way to do it just isn't documented.

Fred Anderson

unread,
Mar 1, 2013, 4:21:08 PM3/1/13
to taffy...@googlegroups.com
I have just discovered Taffy and I am having the same problem. I have the Tomcat version now, and I am going to give it a try tonight. I will post back if I get Express working.
Fred
Reply all
Reply to author
Forward
0 new messages