From owner-freebsd-java@FreeBSD.ORG Wed Feb 4 10:31:16 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 E289F106566B for ; Wed, 4 Feb 2009 10:31:16 +0000 (UTC) (envelope-from roberto.nunnari@supsi.ch) Received: from ti-edu.ch (posta.ti-edu.ch [195.176.176.171]) by mx1.freebsd.org (Postfix) with ESMTP id 497908FC16 for ; Wed, 4 Feb 2009 10:31:15 +0000 (UTC) (envelope-from roberto.nunnari@supsi.ch) X-Virus-Scanned: by cgpav Received: from [193.5.152.27] ([193.5.152.27] verified) by ti-edu.ch (CommuniGate Pro SMTP 5.2.10) with ESMTPS id 30540421; Wed, 04 Feb 2009 10:31:11 +0100 Message-ID: <4989605F.5000808@supsi.ch> Date: Wed, 04 Feb 2009 10:31:11 +0100 From: Roberto Nunnari User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Pieter de Goeje References: <4988F9D8.5020807@telenix.org> <200902041009.38374.pieter@degoeje.nl> In-Reply-To: <200902041009.38374.pieter@degoeje.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Chuck Robey , 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 10:31:17 -0000 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. 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. >