From owner-freebsd-java Thu Nov 22 3:30:21 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id D3ACD37B405; Thu, 22 Nov 2001 03:30:17 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 166s5C-0003j5-00; Thu, 22 Nov 2001 11:31:54 +0000 Date: Thu, 22 Nov 2001 11:31:54 +0000 From: Rasputin To: Ernst de Haan Cc: java@freebsd.org Subject: Re: tomcat port (PATCH) Message-ID: <20011122113154.A14283@shikima.mine.nu> Reply-To: Rasputin References: <20011119161722.A56021@shikima.mine.nu> <200111201351.fAKDpBZ24104@zaphod.euronet.nl> <20011121110415.A12931@shikima.mine.nu> <200111221108.fAMB8Ne07123@zaphod.euronet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111221108.fAMB8Ne07123@zaphod.euronet.nl>; from znerd@freebsd.org on Thu, Nov 22, 2001 at 12:08:23PM +0100 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Ernst de Haan [011122 11:15]: > Hey Rasputin, > > > 1] makes a dependency on 'javac' rather than an explicit path - > > so long as there is a java compiler in your path, it should work. > > Uhm, will javac be in the path? I don't think you get javac in the path if > you install a JDK. The JDK's just install into a subdir of ${PREFIX}. The > scripts and binaries are then in the bin/ subdir, they are *not* copied to > /usr/local/bin nor is a symlink placed there, AFAIK. I'm sort of assuming that if you've installed a JDK you'll have added the toolchain to your path? The alternative is setting a dependency for JAVA_HOME/bin/javac, but again this assumes that you set JAVA_HOME (or JDK_HOME, JRE_HOME, whatever is decided on).... > > 2] makes files/patch-aa correctly set java_home in workers.properties > > (dependant on JAVA_HOME; I have a symlink, /usr/java, that I repoint to > > /usr/local/jdk1,1,8, /usr/local/linux-jdk1.3.1 or whatever other JDK I'm > > using that day) > > Well, this is specific to your situation. It's not official that /usr/java > points to a JDK. And I would not want to introduce that either... *If* some > directory like that would be introduced, then it would at *least* be below > ${PREFIX} (normally /usr/local/) Sure - that's why you can override it to point to wherever your JDK lives. > > 3] Makes tomcat.sh rc script correctly read JAVA_HOME > > (overridable by 'make JAVA_HOME=/usr/local/jdk1.1.8' or whatever) > > 'read'? Where from? Uh, the environment? > Do you replace it? I haven't looked at the diff yet, Have a look - I'm horribly hungover today, so I'm not in any state to explain it properly. > don't really have time yet.... > Hope this helps :-) Sure - the more feedback the better. I was also wondering if there was any reason why tomcat needs to run as root? I managed to get it to run happily over here as user 'tomcat', but I've only be running it about 4 days, so does anyone else know a reason it needs to be root? Only thing I can think of is if you want it as your standard webserver, you'd need root to bind to port 80 - but that could be got around with a port forwarder... -- Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message