Re: java in a jail

2005-07-17 Thread flowctrl
Thanks Glen; I tried that, by adding a line to /etc/hosts with the
jail's IP address and localhost as the name, and removing the standard
127.0.0.1 line.  However, it made no difference to this java app.


On 7/17/05, Glenn Dawson <[EMAIL PROTECTED]> wrote:
> At 11:38 PM 7/16/2005, flowctrl wrote:
> >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=true
> >-Dopenexchange.propfile=$OX/etc/groupware/system.properties
> >-DappName=sessiondApp -Djava.library.path=$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:3)
> >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=8049 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?
> 
> Make localhost point to the IP that's assigned to the jail instead of 
> 127.0.0.1
> 
> -Glenn
> 
> 
> >Thanks!
> >___
> >freebsd-questions@freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


java in a jail

2005-07-16 Thread flowctrl
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=true
-Dopenexchange.propfile=$OX/etc/groupware/system.properties
-DappName=sessiondApp -Djava.library.path=$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:3)
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=8049 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!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"