Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jul 2005 00:38:51 -0600
From:      flowctrl <flowctrl@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   java in a jail
Message-ID:  <4ff8ff4a050716233835147faa@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm trying to setup OpenXchange in a FreeBSD 5.4 jail environment, and
I'm stuck.  At its core, OpenXchange is 3 java programs, and this one
fails to start:

/usr/local/bin/java -server -ms20M -mx280M -Djava.awt.headless=3Dtrue
-Dopenexchange.propfile=3D$OX/etc/groupware/system.properties
-DappName=3DsessiondApp -Djava.library.path=3D$OX/lib -classpath
$CLASSPATH com.openexchange.sessiond.oxsessiond -P

It produces these errors in its log file:
Jul 17 04:27:00 localhost openexchange: oxsessiond init (localhost:33333)
Jul 17 04:27:00 localhost openexchange: INTERNAL TLS Support: OFF
Jul 17 04:27:00 localhost openexchange: oxsessiond init:
java.net.UnknownHostException: localhost: localhost

Inside the jail, 127.0.0.1 doesn't really exist, according to ifconfig:

lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

I have the standard line in /etc/hosts:
127.0.0.1               localhost localhost.my.domain

I'm guessing that the "UnknownHostException: localhost" bit indicates
a problem with the hostname "localhost" not working as expected.  What
can I do to make localhost more "normal" inside the jail?

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ff8ff4a050716233835147faa>