java in jail on FreeBSD 6.1

Anatoli Klassen anatoli at aksoft.net
Fri Mar 3 12:39:39 PST 2006


Greg Lewis wrote:
> On Fri, Mar 03, 2006 at 01:44:50PM +0100, Anatoli Klassen wrote:
>> I cann't start jdk-1.5.0p2_6 in jail on FreeBSD 6.1-PRERELEASE:
>>
>> # java -version
>> Error: could not find libjava.so
>> Error: could not find Java 2 Runtime Environment.
>>
>> but the same package works fine without jail. And it worked in jail on 5.4.
>>
>> Does somebody know what going wrong?
> 
> Use ktrace and see if its looking in the right place for libjava.so.
> 

As I can see it even doesn't open the file, it just tries to get a 
current process file (/proc/curproc/file).

The traces for jailed and non-jailed calls are here (taken on two weeks 
old CURRENT, but 6.1 has the same problem):

http://www.26th.net/public/transfer/java-trace.tar.bz2

If I do same think by hand I see the difference:

Inside jail:
$ ls -l /proc/curproc/file
lr--r--r--  1 user  users  0 Mar  3 21:26 /proc/curproc/file -> unknown

Outside jail:
$ ls -l /proc/curproc/file
lr--r--r--  1 user  users  0 Mar  3 21:27 /proc/curproc/file -> /bin/ls

Looks like kernel bug. Can somebody confirm the issue?

Regards,
Anatoli


More information about the freebsd-java mailing list