Django/Jython doesn't work on Google App Engine

7 views
Skip to first unread message

Olli Wang

unread,
Oct 27, 2009, 8:50:19 PM10/27/09
to Google App Engine
Hi, I successfully created a WAR file which was able to run on Apache
Tomcat with no problem. But when I uploaded it to the Google App
Engine, it shows me a error message like this:
Could not initialize class org.python.modules.thread.thread
RequestURI=/
Caused by:
java.lang.NoClassDefFoundError: Could not initialize class
org.python.modules.thread.thread
at java.lang.Class.forName0(Native Method)
...
...
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
I thought this happened because GAE disables threads as it said "A
Java application cannot create a new java.lang.ThreadGroup nor a new
java.lang.Thread. These restrictions also apply to JRE classes that
make use of threads."
Is there any way to remedy this situation? Any help would be
appreciated.

Gabriel Robertson

unread,
Oct 28, 2009, 3:00:58 AM10/28/09
to google-a...@googlegroups.com

You cannot use threads directly as they do not exist as you know.
Just do not use threads and all should be fine.

Olli Wang

unread,
Oct 28, 2009, 8:34:57 AM10/28/09
to Google App Engine
Is it possible to turn off multithread in Django's configuration?
In Jython, I use modjy to run Django and tries to disable multithread
by setting modjy's multithread parameter to 0 but it doesn't work. :(

On Oct 28, 3:00 pm, OvermindDL1 <overmind...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages