strange issue with route.groovy

Skip to first unread message

Wilson MacGyver

Sep 23, 2015, 1:05:02 PM9/23/15
Hi there,

I just noticed something strange today.

so I have a groovylet


ie, 2 directory down

and in route.groovy

I put

get '/api/match', forward: '/api/games/precompute.groovy'

this works on local dev server, but when I push it up to production it doesn't.

but if I move the groovlet so it's /WEB-INF/api/precompute.groovy, ie, only 1 directory
down. I change the route.groovy to

get '/api/match', forward: '/api/precompute.groovy'

then it works on both local and production.

has anyone run into this before? this seems quite odd to me.

Omnem crede diem tibi diluxisse supremum.

Vladimír Oraný

Sep 23, 2015, 2:42:19 PM9/23/15

This is common problem if you forget to declare package in the groovlet

Dne st 23. 9. 2015 19:05 uživatel Wilson MacGyver <> napsal:

You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to:
To unsuscribe from this group:
To show more options:

You received this message because you are subscribed to the Google Groups "Gaelyk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit

Wilson MacGyver

Sep 23, 2015, 3:14:56 PM9/23/15
Really? Howcome it works on dev server?

Vladimír Oraný

Sep 23, 2015, 4:24:07 PM9/23/15

I prefers local files (found by path) to precompiled (found by package + script name).

Dne st 23. 9. 2015 21:14 uživatel Wilson MacGyver <> napsal:

Wilson MacGyver

Sep 23, 2015, 8:38:57 PM9/23/15
yup, that was it. by declaring package in my groovlet files, now I can have more than one directory deep. and everything works correctly.

Thank you!
Reply all
Reply to author
0 new messages