Message4302

Author tommyli
Recipients admin, adsharma, alserkli, andv, bckfnn, bme, cgroves, gbgbgb50, greg_ball, herron, ianzsk, jeffsong, jmacy, mfuzzey, mianko, nickm, njcarriero, pedronis, satayboy, szegedia, thehaas, tommyli, ype, zenzen
Date 2009-03-17.09:22:02
SpamBayes Score 1.0513368e-11
Marked as misclassified No
Message-id <1237281723.67.0.334921945221.issue1273@psf.upfronthosting.co.za>
In-reply-to
Content
PyServlet not working properly with the following envirnoment
Red Hat Enterprise Linux AS release 3 (Taroon Update 3)
Java SDK 6.0 update 12
Jython 2.5b3
Tomcat 6.0.18

but this is work fine in windows.

-----------------------------------------------------------------------
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Traceback (most recent call last):
  File "/home/xxxxxx/XXXXXXXX/tomcat/webapps/xxxxxxxx/xxxxxxxx.py", line
1, in <module>
    import os
ImportError: No module named os

	org.python.util.PyServlet.loadServlet(PyServlet.java:199)
	org.python.util.PyServlet.getServlet(PyServlet.java:159)
	org.python.util.PyServlet.service(PyServlet.java:135)

root cause

Traceback (most recent call last):
  File "/home/xxxxxx/XXXXXXXX/tomcat/webapps/xxxxxxxx/xxxxxxxx.py", line
1, in <module>
    import os
ImportError: No module named os

	org.python.core.PyException.fillInStackTrace(PyException.java:65)
	java.lang.Throwable.<init>(Throwable.java:181)
	java.lang.Exception.<init>(Exception.java:29)
	java.lang.RuntimeException.<init>(RuntimeException.java:32)
	org.python.core.PyException.<init>(PyException.java:46)
	org.python.core.PyException.<init>(PyException.java:43)
	org.python.core.PyException.<init>(PyException.java:56)
	org.python.core.Py.ImportError(Py.java:262)
	org.python.core.imp.import_first(imp.java:616)
	org.python.core.imp.import_name(imp.java:700)
	org.python.core.imp.importName(imp.java:750)
	org.python.core.ImportFunction.__call__(__builtin__.java:1265)
	org.python.core.PyObject.__call__(PyObject.java:337)
	org.python.core.__builtin__.__import__(__builtin__.java:1236)
	org.python.core.__builtin__.__import__(__builtin__.java:1219)
	org.python.core.imp.importOne(imp.java:761)
	org.python.pycode._pyx2.f$0(/home/xxxxxx/XXXXXXXX/tomcat/webapps/xxxxxxxx/xxxxxxxx.py:18)
	org.python.pycode._pyx2.call_function(/home/xxxxxx/XXXXXXXX/tomcat/webapps/xxxxxxxx/xxxxxxxx.py)
	org.python.core.PyTableCode.call(PyTableCode.java:166)
	org.python.core.PyCode.call(PyCode.java:14)
	org.python.core.Py.runCode(Py.java:1206)
	org.python.core.__builtin__.execfile_flags(__builtin__.java:538)
	org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:142)
	org.python.util.PyServlet.loadServlet(PyServlet.java:184)
	org.python.util.PyServlet.getServlet(PyServlet.java:159)
	org.python.util.PyServlet.service(PyServlet.java:135)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.
Apache Tomcat/6.0.18
History
Date User Action Args
2009-03-17 09:22:04tommylisetrecipients: + tommyli, admin, adsharma, bckfnn, pedronis, cgroves, gbgbgb50, herron, ianzsk, szegedia, satayboy, jeffsong, mfuzzey, ype, jmacy, zenzen, nickm, alserkli, andv, njcarriero, thehaas, greg_ball, bme, mianko
2009-03-17 09:22:03tommylisetmessageid: <1237281723.67.0.334921945221.issue1273@psf.upfronthosting.co.za>
2009-03-17 09:22:03tommylilinkissue1273 messages
2009-03-17 09:22:02tommylicreate