From owner-freebsd-ports@FreeBSD.ORG Wed Sep 24 19:41:56 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A537816A4B3 for ; Wed, 24 Sep 2003 19:41:56 -0700 (PDT) Received: from bjpu.edu.cn (egw.bjpu.edu.cn [202.112.78.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FFA143FF7 for ; Wed, 24 Sep 2003 19:41:53 -0700 (PDT) (envelope-from liukang@bjpu.edu.cn) Received: (eyou gateway send program); Thu, 25 Sep 2003 10:44:57 +0800 X-EYOU-ORIGINAL-IP: 61.149.137.23 X-EYOU-ENVELOPE-MAILFROM: liukang@bjpu.edu.cn Received: from unknown (HELO ssc) (unknown@61.149.137.23) by 202.112.78.77 with ; Thu, 25 Sep 2003 10:44:57 +0800 From: "Kang Liu" To: "'Angelo Turetta'" , Date: Thu, 25 Sep 2003 10:47:43 +0800 Message-ID: <006001c3830f$6d3f29f0$0501a8c0@ssc> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <3F71E405.2080308@commit.it> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: RE: jakarta-tomcatX: different behaviour between port and package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2003 02:41:56 -0000 I can not reproduce the problem you described on 5.1current. Kang ipfwtest# whoami root ipfwtest# pkg_add jakarta-tomcat-5.0.12.tbz ipfwtest# tomcat50ctl start >> Reading PID file (/var/run/tomcat50.pid)... [ DONE ] >> Starting Jakarta Tomcat 5.0.12... [ DONE ] >> Writing PID file... [ DONE ] ipfwtest# netstat -an |grep 8180 tcp4 0 0 *.8180 *.* LISTEN ipfwtest# ls -al /usr/local/jakarta-tomcat5.0/conf/ total 78 drwxr-xr-x 3 root wheel 512 Sep 25 10:33 . drwxr-xr-x 11 root wheel 512 Sep 25 10:33 .. drwxr-xr-x 3 root wheel 512 Sep 25 10:33 Catalina -rw------- 1 www www 6804 Sep 22 21:21 catalina.policy -rw------- 1 www www 2715 Sep 22 21:21 catalina.properties -rw------- 1 www www 778 Sep 22 21:21 jk2.properties -rw------- 1 www www 17429 Sep 22 21:21 server.xml -rw-r--r-- 1 www www 310 Sep 22 21:25 tomcat-users.xml -rw------- 1 www www 37158 Sep 22 21:21 web.xml > -----Original Message----- > From: Angelo Turetta [mailto:aturetta@commit.it] > Sent: Thursday, September 25, 2003 2:36 AM > To: ports@FreeBSD.org > Cc: liukang@bjpu.edu.cn > Subject: jakarta-tomcatX: different behaviour between port and package > > > Installing a package built from the jakarta-tomcat{41|5} > ports, results > in the installation directories created with owner:group of the user > running pkg_add. > > After installing the port itself, instead, those same > directories have > the correct owner:group of www:www. > > That behaviour of the packages breaks tomcat, because it needs write > permission to create temporary files & dirs. > > The simptom is that on first run you get the following error in > logs/stdout.log > > WARNING: Unexpected exception resolving reference > java.io.FileNotFoundException: > /usr/local/jakarta-tomcat5.0/conf/tomcat-users.xml.new > (Permission denied) > (catalina stack trace follows) > > Angelo Turetta > Commit >