Message9979

Author eaaltonen
Recipients eaaltonen
Date 2015-04-27.07:55:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430121338.4.0.107473480975.issue2339@psf.upfronthosting.co.za>
In-reply-to
Content
This seems to be some sort of classloading issue that occurs both when running the sample program in the Eclipse IDE and with "mvn exec:java..."

Running (in Linux) with jython.jar in the boot classpath works without problems.

Manually registering the PyScriptEngineFactory to the ScriptEngineManager will make PyScriptEngineFactory.getScriptEngine() fail with a ClassNotFoundException.

Calling getScriptEngine() manually before calling scriptEngineManager.getEngineByName("python") will make the classloaders happy again, but the next failure is

Exception in thread "main" ImportError: Cannot import site module and its dependencies: No module named site
History
Date User Action Args
2015-04-27 07:55:38eaaltonensetmessageid: <1430121338.4.0.107473480975.issue2339@psf.upfronthosting.co.za>
2015-04-27 07:55:38eaaltonensetrecipients: + eaaltonen
2015-04-27 07:55:38eaaltonenlinkissue2339 messages
2015-04-27 07:55:37eaaltonencreate