Q42 / play-gae

Create Play! applications for Google App Engine
http://www.playframework.org/modules/gae
3 stars 2 forks source link

Here while launching adminConsole #5

Open PerfectCarl opened 11 years ago

PerfectCarl commented 11 years ago

I am using the gae plugin with play 1.2.5 and 1.2.7 and I get an error.

Any idea what is wrong ?

Internal Server Error (500) for request GET /_ah/admin

Execution exception (In {module:play-gae-q42-1.8.1.1}/app/controllers/GAEActions.java around line 33)
NoClassDefFoundError occured : org/mortbay/jetty/Handler

play.exceptions.JavaExecutionException: org/mortbay/jetty/Handler
        at play.mvc.ActionInvoker.invoke(ActionInvoker.java:237)
        at Invocation.HTTP Request(Play!)
Caused by: java.lang.NoClassDefFoundError: org/mortbay/jetty/Handler
        at controllers.GAEActions.adminConsole(GAEActions.java:33)
        at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:557)
        at play.mvc.ActionInvoker.invoke(ActionInvoker.java:508)
        at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484)
        at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479)
        at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
        ... 1 more
Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.Handler
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 7 more
chees commented 11 years ago

As far as I know you can't use the /_ah/ pages with Play, since Play listens on *

PerfectCarl commented 11 years ago

Well, /_ah/login does work. I am pretty confused at the error. Why using jetty and not using the embedded netty server ?

Is this supposed to work only in some special configuration ?

(Anyway, it's nice of you to take the time to comment here. The regular play mailing list is not very reactive on GAE issues :) )

jirubio commented 11 years ago

Hi, I don't use gae anymore, what I can give is some background. The original gae admin console uses servlets and this is not supported by Play, so to load the admin console an embedded jetty is used instead. At the time of writing that feature the gae sdk came with jetty as a dependency, because it was the internal server used by the gae runtime. Maybe this has changed and recent gae sdks don't use jetty anymore. If this is the case there are two solutions, add jetty to the gae-plugin or refactor the play gae admin to use a new servlet server. I hope this explanation will help somehow.

PerfectCarl commented 11 years ago

Thanks for your answer.

It makes sense now. ! I'll give it a try.