Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2005 09:47:37 -0400
From:      "inonit@inonit.com" <inonit@inonit.com>
To:        freebsd-java@freebsd.org
Subject:   Basic FreeBSD Java/Tomcat questions
Message-ID:  <380-220057428134737203@M2W039.mail2web.com>

next in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?380-220057428134737203>