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.
On Tue, Oct 27, 2009 at 6:50 PM, Olli Wang <olliw...@ollix.com> wrote:
> 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.
You cannot use threads directly as they do not exist as you know. Just do not use threads and all should be fine.
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:
> On Tue, Oct 27, 2009 at 6:50 PM, Olli Wang <olliw...@ollix.com> wrote:
> > 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.
> You cannot use threads directly as they do not exist as you know.
> Just do not use threads and all should be fine.