From owner-freebsd-questions@FreeBSD.ORG Sun Jul 17 07:14:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D9CC16A41C for ; Sun, 17 Jul 2005 07:14:14 +0000 (GMT) (envelope-from flowctrl@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id F15A543D48 for ; Sun, 17 Jul 2005 07:14:13 +0000 (GMT) (envelope-from flowctrl@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so14371wra for ; Sun, 17 Jul 2005 00:14:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jLcIRPiwWUjUmMic48tqhxqchrv8lCy8h8BR0L9WlokhatBdV+k44etkzjOeddONDT2lXkxl7qhqOgk3g3ErsEVFf89MFZ/F7+ouGpgm02ZMwufnym6z0CAHQU1gHZ8ixW6T38U5nHlvWh4kB6ZxnUHr5dLp3qYHLdqPqZOe6/o= Received: by 10.54.107.2 with SMTP id f2mr34397wrc; Sun, 17 Jul 2005 00:14:13 -0700 (PDT) Received: by 10.54.96.8 with HTTP; Sun, 17 Jul 2005 00:14:13 -0700 (PDT) Message-ID: <4ff8ff4a05071700144ebe2948@mail.gmail.com> Date: Sun, 17 Jul 2005 01:14:13 -0600 From: flowctrl To: Glenn Dawson In-Reply-To: <6.1.0.6.2.20050717000230.0f41f010@cobalt.antimatter.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4ff8ff4a050716233835147faa@mail.gmail.com> <6.1.0.6.2.20050717000230.0f41f010@cobalt.antimatter.net> Cc: freebsd-questions@freebsd.org Subject: Re: java in a jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: flowctrl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2005 07:14:14 -0000 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 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=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 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? >=20 > Make localhost point to the IP that's assigned to the jail instead of 127= .0.0.1 >=20 > -Glenn >=20 >=20 > >Thanks! > >_______________________________________________ > >freebsd-questions@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.= org" >=20 >