routes problem

66 views
Skip to first unread message

Joseph Greenawalt

unread,
Oct 23, 2012, 11:32:17 PM10/23/12
to gae...@googlegroups.com
Hi,
all other routes are working, but none have /*/* they're all /*:

get "/user/address", forward: "com.web.user.AddressGET.groovy"

the error i get is this:

WARNING: GroovyServlet Error:  script: '/user/com.web.user.AddressGET.groovy':  Script not found, sending 404.

If i change the script location from . to / i get the same "type" of problem:

WARNING: GroovyServlet Error:  script: '/user/com/web/user/AddressGET.groovy':  Script not found, sending 404.

Its taking the /user in the URL and appending it to the script location.  Am I doing something wrong?
It would seem going through the examples this should be allowed?

Thanks,
Joe

Vladimír Oraný

unread,
Oct 24, 2012, 7:48:53 AM10/24/12
to gae...@googlegroups.com
Hi Joseph,

do you declare package 'com.web.user' in your scripts?

V.

2012/10/24 Joseph Greenawalt <joe.gre...@gmail.com>

--
You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to: gae...@googlegroups.com
To unsuscribe from this group: gaelyk+un...@googlegroups.com
To show more options: http://groups.google.fr/group/gaelyk?hl=en

Scott Murphy

unread,
Nov 2, 2012, 7:13:25 PM11/2/12
to gae...@googlegroups.com, vlad...@orany.cz
Do we document that anywhere?  Because I ran into that problem a few weeks ago and totally forgot I had to do that.  Luckily, I eventually remember why that was happening.

Vladimír Oraný

unread,
Nov 3, 2012, 4:32:23 AM11/3/12
to gae...@googlegroups.com
I've just found the note in binary plugin section. I've added it to groovlets section as well.



2012/11/3 Scott Murphy <sc...@pixoto.com>

Denis Kozhevnikov

unread,
Nov 24, 2012, 2:45:39 PM11/24/12
to gae...@googlegroups.com, vlad...@orany.cz
Hi guys,

I also experiencing the same problem. It works on mu localhost:8080 env, but does not in the cloud. I get
.gaelyk.groovlet.index: GroovyServlet Error: script: '/index.groovy': Script not found, sending 404.

in my GAE console.

here's my routes.groovy

get  "/", forward: "/index.groovy"
get  "/index", forward: "/index.groovy"
get  "/index.html", forward: "/index.groovy"

get  "/favicon.ico", redirect: "/images/logo_32.png"

I can tell you that this worked several weeks ago, I made some changes [I'd assume] and this odd behaviour started

here's my index.groovy

import com.website.BackgroundImageLinkService

request.setAttribute 'contentHtml', 'index.html'
request.setAttribute 'bgImageUrl', new BackgroundImageLinkService(datastore).imgSrc()

forward '/WEB-INF/templates/carcass.html'

please help me
thank you

cheers
Denis

PS. Note:Don't forget to declare packages for Groovlets when you use Gradle Gaelyk Plugin to build the application. Otherwise they will be placed in wrong destination folders!

says me nothing, unfortunately! I use gmaven and maven-gae-plugin to build and deploy the app.

Denis Kozhevnikov

unread,
Nov 24, 2012, 5:02:03 PM11/24/12
to gae...@googlegroups.com, vlad...@orany.cz
Ok, I carried on with checking what's going on

after deploying to the cloud I can see my / page loaded just fine. If I then press F5 to refresh I get 404.

Here's logs for the first connect

  1. 200 11303ms 2kb Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
    2.101.64.165 - - [24/Nov/2012:13:48:26 -0800] "GET / HTTP/1.1" 200 2591 - "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11" "www.mywebsite.co.uk" ms=11303 cpu_ms=7561 cpm_usd=0.000290 loading_request=1 instance=<longstring>
  2. I2012-11-24 21:48:22.725
    javax.servlet.ServletContext log: Groovy servlet initialized on groovy.util.GroovyScriptEngine@d99f4a.
  3. I2012-11-24 21:48:22.822
    javax.servlet.ServletContext log: TemplateServlet: Servlet groovyx.gaelyk.GaelykTemplateServlet initialized on class groovy.text.SimpleTemplateEngine
  4. I2012-11-24 21:48:26.522
    This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
Then I can see resources used by this page loaded, eg css, png, etc

Log for the refresh connection

  1. 2012-11-24 21:48:29.033 / 404 167ms 0kb Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
    2.101.64.165 - - [24/Nov/2012:13:48:29 -0800] "GET / HTTP/1.1" 404 234 - "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11" "www.mywebsite.co.uk" ms=167 cpu_ms=151 cpm_usd=0.000026 instance=<longstring>
  2. I2012-11-24 21:48:29.029
    javax.servlet.ServletContext log: GroovyServlet Error:  script: '/index.groovy':  Script not found, sending 404.
  3. W2012-11-24 21:48:29.030
    [s~mindthegoal/4.363406215849884860].gaelyk.groovlet.index: GroovyServlet Error:  script: '/index.groovy':  Script not found, sending 404.

I really hope that will be in help for you guys, because I just give up to understand what's going on. It all works just fine on my local environment!!!

Many thanks,
Denis

Denis Kozhevnikov

unread,
Nov 24, 2012, 5:21:55 PM11/24/12
to gae...@googlegroups.com, vlad...@orany.cz
OK, my fault, nothing to do with routes, eventually found. My apologies.

Solution was to delete lib folder from src/main/webapp/WEB-INF. It contained old versions of libraries. After I upgraded gaelyk version in my pom.xml this behaviour started. This lib folder is generated automatically during the build based on maven dependencies so I do not need to have such folder in sources.

cheers
Denis

Scott Murphy

unread,
Nov 24, 2012, 5:26:21 PM11/24/12
to gae...@googlegroups.com, gae...@googlegroups.com, vlad...@orany.cz
You might want to zip up a small sample application that replicates the problem.
That way it will be easy to determine what exactly is going on.
Sent from my iPhone 

Seymores

unread,
Nov 27, 2012, 1:51:16 AM11/27/12
to gae...@googlegroups.com, vlad...@orany.cz
I'm getting that error too now and I happens right after I upgraded the gae-gradle plugin.
What's the solution again? I deleted the lib folder and that didn't do the trick.

Marcin Erdmann

unread,
Nov 27, 2012, 8:09:41 AM11/27/12
to gae...@googlegroups.com
You shouldn't upgrade gradle-gae-plugin. The correct version will be
pulled in and applied for you when you apply gradle-gaelyk-plugin to
your project.
Reply all
Reply to author
Forward
0 new messages