From owner-freebsd-java@FreeBSD.ORG Wed Feb 4 17:18:24 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9841C106566B for ; Wed, 4 Feb 2009 17:18:24 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id 732C38FC16 for ; Wed, 4 Feb 2009 17:18:24 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 31630 invoked from network); 4 Feb 2009 17:18:23 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 4 Feb 2009 17:18:23 -0000 Message-ID: <4989CBE5.7080105@telenix.org> Date: Wed, 04 Feb 2009 12:09:57 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Roberto Nunnari References: <4988F9D8.5020807@telenix.org> <200902041009.38374.pieter@degoeje.nl> <4989605F.5000808@supsi.ch> In-Reply-To: <4989605F.5000808@supsi.ch> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Pieter de Goeje , freebsd-java@freebsd.org Subject: Re: getting tomcat running X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 17:18:24 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Roberto Nunnari wrote: > I agree. Also, remember to add this line to your /etc/rc.conf: > tomcat55_enable="YES" > > then, you can start your tomcat, with: > /usr/local/etc/rc.d/tomcatxx > > where xx stand for your tomcat version. Funny, I'm actually anxiously *trying* to be wrong here. First, I started out with a server.xml which I'd modified to have the "8080" connector modified to read "80" only, and it seems that nothing else I've done has changed it, because I've been rechecking it at every turn, it stays still at 80. I even decided to try the 8080 *anyhow*, by putting it in the lookup URL, but that hasn't helped. I wasn't really aware about how the apache server and tomcat interwork. I got that info last night. If I have apache working, I have my little demo url showing up. If I don't have the apache server working, then the browser tells me that it can't find anything at all at localhost. I'd configured tomcat to default to a directory listing, it does that, but I tried to turn "listings" off, it STILL gives me directory listings to begin with. I'm not sure what word to use in the /etc/rc.conf. I've had tomcat6_enable set to YES from the beginning, but I'm not sure it shouldn't be tomcat, tomcat60, or maybe something with periods in it. I need help on that, no script seems to be helping me. Was your comment about setting tomcat55 a mistake, or a real thing? I don't want to sound like some nitpicker, I'm just so desperate for a fix, I really don't know the answer. What I did about adding the APR, it was because of the log entry, I was looking for any possible answer. I'm still thinking that I need an answer about the missing library, and how come the stdout log entry tells me that my java.library.path is not bringing in the libs. I need to fix whatever sets that java.library.path. Is that configured somewhere? Thanks hugely for the help! > > Robi > > > Pieter de Goeje ha scritto: >> On Wednesday 04 February 2009 03:13:44 Chuck Robey wrote: >>> I can't get my tomcat6 working. I found an interesting item in the >>> /usr/local/apache-tomcat6.0/logs/stdout.log, so I'm checking out that it >>> says that it wants a libtcnative. Here's the log entry: >>> >>> INFO: The APR based Apache Tomcat Native library which allows optimal >>> performance in production environments was not found on the >>> java.library.path: >>> /usr/local/jdk1.6.0/jre/lib/i386/server:/usr/local/jdk1.6.0/jre/lib/i386: >>> >>> /usr/local/jdk1.6.0/jre/../lib/i386:/usr/lib:/usr/X11R7.4/lib:/usr/local/li >>> >>> b: /usr/java/packages/lib/i386:/lib:/usr/lib:/usr/local/lib >>> >>> So, I found a www/tomcat-native port which installs the libtcnative.so >>> library, and I installed that, but the error above, from the stdout.log >>> file, doesn't change, it still can't find the library. What does >>> tomcat6 >>> refer to, to find it's libraries? The libtcnative it installs is >>> going into /usr/local/lib, it's on that list, ldconfig -r finds it fine. >> The "Apache Tomcat Native" library really isn't needed to run tomcat. >> The library speeds up serving of static content. I bet your tomcat >> started fine, and is listening on port 8180. Are you sure you >> restarted tomcat after you intstalled tomcat-native? >> >> For development I recommend downloading the latest tomcat, extracting >> it in your homedir. Then simply: >> cd apache-tomcat-6.x.y >> export JAVA_HOME=/usr/local/jdk1.6.0 >> ./bin/startup.sh >> >> You can then also configure eclipse to automatically deploy your >> applications to this tomcat. >> >> >>> I looked at that list above, I know it's nothing I ever put together, >>> some >>> port's done that. Any idea from where? Maybe I should put the >>> /usr/local/lib higher in that list? I mean, I haven't got any >>> /usr/java, >>> maybe it's seeing a bad entry like that and stopping the entry >>> reading at >>> that point. I need to find that list. >> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmJy+UACgkQz62J6PPcoOnwPgCfezzWP1AHeXZofIRXGNOybSiT 5msAoKTl93gXEpprCG6LwZEFoJjmLhmF =c/lY -----END PGP SIGNATURE-----