From owner-freebsd-questions@FreeBSD.ORG Sun Jul 17 07:07:31 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 05AEC16A41C for ; Sun, 17 Jul 2005 07:07:31 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF67D43D45 for ; Sun, 17 Jul 2005 07:07:30 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-27-86-22.san.res.rr.com [66.27.86.22]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j6H77TP1004277 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO); Sun, 17 Jul 2005 00:07:29 -0700 Message-Id: <6.1.0.6.2.20050717000230.0f41f010@cobalt.antimatter.net> X-Sender: lists@cobalt.antimatter.net X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Sun, 17 Jul 2005 00:04:34 -0700 To: flowctrl , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: <4ff8ff4a050716233835147faa@mail.gmail.com> References: <4ff8ff4a050716233835147faa@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: java in a jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2005 07:07:31 -0000 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: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=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 "freebsd-questions-unsubscribe@freebsd.org"