Message5917

Author akruis
Recipients akruis, rafanunes
Date 2010-07-22.08:06:18
SpamBayes Score 3.790236e-05
Marked as misclassified No
Message-id <1279785981.08.0.990014134267.issue1629@psf.upfronthosting.co.za>
In-reply-to
Content
The exception is indeed caused, by imp.load not finding site.py. The problem is, that sys.path is not yet properly initialized, when imp.load("site.py") is invoked. This happens, if jython is embedded within the WAR archive. In this case, the method ModjyJServlet#processPythonLib sets up sys.path to the location of the jython files within the extracted WAR archive. Currently this method is called immediately after importing "site.py". The fix simply calls processPythonLib before checkSitePackages.

I'm not sure, if we need an unit test for this bug and how to set up such a test.
History
Date User Action Args
2010-07-22 08:06:21akruissetmessageid: <1279785981.08.0.990014134267.issue1629@psf.upfronthosting.co.za>
2010-07-22 08:06:21akruissetrecipients: + akruis, rafanunes
2010-07-22 08:06:20akruislinkissue1629 messages
2010-07-22 08:06:20akruiscreate