From owner-freebsd-java@FreeBSD.ORG Thu Jul 28 13:47:41 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D73616A41F for ; Thu, 28 Jul 2005 13:47:41 +0000 (GMT) (envelope-from inonit@inonit.com) Received: from xrelay04.mail2web.com (xrelay04.mail2web.com [168.144.1.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 220AB43D53 for ; Thu, 28 Jul 2005 13:47:41 +0000 (GMT) (envelope-from inonit@inonit.com) Received: from [168.144.251.144] (helo=M2W039.mail2web.com) by xrelay04.mail2web.com with smtp (Exim 4.50) id 1Dy8jZ-0001g5-7R; Thu, 28 Jul 2005 09:47:40 -0400 Message-ID: <380-220057428134737203@M2W039.mail2web.com> X-Priority: 3 X-Originating-IP: 192.88.212.56 X-URL: http://mail2web.com/ From: "inonit@inonit.com" To: freebsd-java@freebsd.org Date: Thu, 28 Jul 2005 09:47:37 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Basic FreeBSD Java/Tomcat questions X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: inonit@inonit.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2005 13:47:41 -0000 Hello, all=2E I'm an old hand with Java but relatively inexperienced with= FreeBSD, and I've never run Java there until the last few days=2E I had a= few things I was wondering about=2E I can't find these things in the archives, and don't know where else to look=2E Some of my questions might= betray my lack of FreeBSD knowledge =2E=2E=2E My preferences: 1=2E Avoid customization to the extent possible -- I don't really want to= spend much energy being an admin -- even if my configuration is not optimally flexible, or whatever=2E This means I'd prefer to use packages from 5=2E4-RELEASE as opposed to ports, etc=2E 2=2E Not to have to build full JDK (with web start, plugins, etc=2E) -- building minimal took days as it was=2E 3=2E Simplest system possible, fewest installs possible, ease of administration/use=2E Here's what I've done so far: 1=2E Installed FreeBSD 5=2E4-RELEASE (minimal distribution set only) 2=2E Built jdk-minimal-1=2E4=2E2p7 from source on test machine=2E Seemed= to go fine=2E Created package using pkg=5Fcreate -b =2E=2E=2E 3=2E Installed jdk-minimal-1=2E4=2E2p7 as package=2E java -version works= ; haven't tried much else, except =2E=2E=2E 4=2E jakarta-tomcat-5=2E0=2E30 as package WITHOUT its dependencies (i=2Ee= =2E, pkg=5Fadd -r from my own server, which does not have the fonts stuff on it= )=2E=20 Besides emitting the predicatable complaints about missing dependencies, the pkg=5Fadd command emits a warning saying the jdk package is required a= nd I have jdk-minimal=2E 5=2E Tomcat post-install cp conf/server-minimal=2Exml=2Esample to conf/server=2Exml cp conf/web=2Exml=2Esample to conf/web=2Exml chown www conf/*=2Exml /usr/local/etc/rc=2Ed/020* start What happens: It works, so far as I can tell=2E This means that I've gone to the home page, not tested extensively=2E The 'balancer' webapp doesn't initialize correctly (fails with NoClassDefFoundError on org=2Eapache=2Ecommons=2Edigester=2EDigester) but I'm not too worried abou= t that since I don't know exactly what it's for and I haven't read any docs yet=2E= Questions: 1=2E Why does Tomcat depend on all the font stuff=3F Can I safely run wi= thout it=3F 2=2E Same question with the jdk vs=2E jdk-minimal issue=2E 3=2E What are the limitations of tomcat50ctl=3F I've seen some messages = in the archives saying I'll need to change my /usr/local/etc/rc=2Ed script if= I want to do things like command-line arguments to Tomcat, etc=2E Comments: I'm really pleased (as I've worked through these issues) about how smart=20= the packaging system is (e=2Eg=2E, not deleting files if they've been chan= ged)=2E Not sure to what extent credit is due FreeBSD developers and to what exten= t credit is due to people on this list, but take whatever you're entitled to= =2E :) Special praise for the jdk14 port -- for such a complex build, I'm shocked= how well it worked for me, particularly since I know very little about mak= e=2E Cheers, -- David=2E -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web=2Ecom/ =2E