Message5916

Author akruis
Recipients akruis, rafanunes
Date 2010-07-21.12:11:54
SpamBayes Score 3.3755407e-07
Marked as misclassified No
Message-id <1279714316.9.0.484177047736.issue1629@psf.upfronthosting.co.za>
In-reply-to
Content
The bug is clearly introduced by the change from SVN rev 6858 to rev 6859. This commit changes com/xhaus/modjy/ModjyJServlet.java only. The SVN log message reads:

------------------------------------------------------------------------
r6859 | amak | 2009-10-15 19:40:22 +0200 (Do, 15. Okt 2009) | 1 Zeile

Checking in support for loading site-packages, through the use of imp.load("site"). Controlled with a "load_site_packages" option, which defaults to true.
------------------------------------------------------------------------

Therefore tit should be possible to work around this bug by setting the servlet or webapp parameter "load_site_packages" to "0". 

But what is the real cause of this problem. The relevant part of the code change is the addition of

import org.python.core.imp;
...
imp.load("site");

The static method imp.load fails to load the "site" module. Currently I do not know, why it fails to load site.py, because the site.py file is present.
History
Date User Action Args
2010-07-21 12:11:56akruissetmessageid: <1279714316.9.0.484177047736.issue1629@psf.upfronthosting.co.za>
2010-07-21 12:11:56akruissetrecipients: + akruis, rafanunes
2010-07-21 12:11:56akruislinkissue1629 messages
2010-07-21 12:11:55akruiscreate