Issue1360

classification
Title: The write permission is required on jython.jar ?
Type: Severity: normal
Components: Core Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: amylin, pjenvey
Priority: Keywords:

Created on 2009-05-29.20:19:55 by amylin, last changed 2009-06-21.22:07:20 by pjenvey.

Messages
msg4760 (view) Author: (amylin) Date: 2009-05-29.20:19:53
Does jython require the write permission on jython.jar and library 
modules?

We are using Jython 2.1 in WebSphere Application Server version 6.1.  
The jython.jar is located in 
WebSphere/AppServer/optionalLibraries/jython directory.  The user is 
not able to run jython script (import sys) using WebSphere wsadmin 
tool when the permission is set R/O (readonly) 
on /optionalLibraries/jython folder and subfolders.  

The user got the error from BSFManager: unable to load language: 
jython 

WASX7022E: Problem running command "import sys" -- exception 
   information: com.ibm.bsf.BSFException: unable to load language: 
jython 

It works fine after changed the permission from R/O to RW.

The WebSphere is installed on z/Linux in a shared-binary environment 
and all the binaries common to WebSphere including jython.jar (and 
other open source binaries such as jacl.jar) are mounted on a separate 
disk in a read only fashion.  They are not able to run jython command 
(Jacl is fine) until they change the jython.jar folder to RW.

We know that jython 2.1 needs to create the cachedir (write *pkc files 
for each jar it loads) in python.home during initialization.  We have 
redirected python.cachedir to a writable /temp directory, so cachedir 
will not be created on /optionalLibraries/jython folder.  However, it 
doesn't help and user is still seeing the same error with R/O 
permission.  We wonder that jython needs write access to jython.jar in 
addition to create cachedir (*pkc files) in python.home.

Another example: 

We import a jython library module such as javaos (jython library 
modules are located in python.home/Lib directory) and execute os 
function in wsadmin tool.  We see javaos$py.class is created from 
python compilation at the same location of javaos.py 
on /optionalLibraries/jython/Lib.  If we like to set jython library 
module folder to RX only, is there any way (option or fix) that we can 
redirect the compiled class file to be generated in other writable 
location?  

We like to change all WebSphere binaries to RX instead of RWX to avoid 
any exposure and we like to know if jython code requires to write 
something on jython.jar and if this is a bug in Jython 2.1.
msg4840 (view) Author: Philip Jenvey (pjenvey) Date: 2009-06-21.22:07:19
Unfortunately we just don't support 2.1 any longer (it's about 8 years old 
and even 2.2 support is pretty much over at this point). Your best bet 
would be to upgrade Jython, or possibly contact IBM about the issue
History
Date User Action Args
2009-06-21 22:07:20pjenveysetstatus: open -> closed
resolution: wont fix
messages: + msg4840
nosy: + pjenvey
2009-05-29 20:19:55amylincreate