|
From: Robert W. B. <rb...@di...> - 2001-01-22 14:21:46
|
Freezing servlet applications have resulted in difficulty with
the javaos module. The simple scenario is I need to use
os.stat(file), but all frozen applications return the error:
AttributeError: class 'org.python.modules.os' has no attribute 'stat'
When using jythonc, i've tried:
jythonc -a -j app.jar jyDispatch.py
jythonc -a -j app.jar jyDispatch.py javaos os re string others...
jythonc -c -j app.jar jyDispatch.py javaos etc....
jythonc -a -A c:\jython-2.0\lib\javaos -j app.jar jyDispatch.py os
All result in the above AttributeError.
I've assumed stat requires os + javaos- does it? How
do I freeze an application so that I can use it? Which jythonc line above
was closest?
More on the servlet:
I'm using Tomcat 3.2, Sun jdk 1.2.2, Win98 and Linux
Context is jython and jython.jar + app.jar are in
$TOMCAT_HOME/webapps/jython/WEB-INF/lib so that they can be *.war-ified
easily.
Thank you in advance for any suggestions.
-Robert
|