From owner-freebsd-java@FreeBSD.ORG Wed Feb 4 09:21:44 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 C860C1065677 for ; Wed, 4 Feb 2009 09:21:44 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from s2m-is-001.service2media.com (rev-130-102.virtu.nl [217.114.102.130]) by mx1.freebsd.org (Postfix) with ESMTP id 64FD88FC1A for ; Wed, 4 Feb 2009 09:21:44 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox-laptop.localnet ([10.0.1.45] RDNS failed) by s2m-is-001.service2media.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 4 Feb 2009 10:09:38 +0100 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Wed, 4 Feb 2009 10:09:38 +0100 User-Agent: KMail/1.10.4 (Linux/2.6.27-11-generic; KDE/4.1.4; x86_64; ; ) References: <4988F9D8.5020807@telenix.org> In-Reply-To: <4988F9D8.5020807@telenix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902041009.38374.pieter@degoeje.nl> X-OriginalArrivalTime: 04 Feb 2009 09:09:38.0907 (UTC) FILETIME=[4EA89AB0:01C986A8] Cc: Chuck Robey 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 09:21:45 -0000 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. -- Pieter de Goeje