From owner-freebsd-java@FreeBSD.ORG Thu Jun 10 20:23:49 2004 Return-Path: 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 235AF16A4CE for ; Thu, 10 Jun 2004 20:23:49 +0000 (GMT) Received: from util.inch.com (shellutil.inch.com [216.223.208.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id B051343D46 for ; Thu, 10 Jun 2004 20:23:48 +0000 (GMT) (envelope-from gcoon@inch.com) Received: from kod.inch.com (kod.inch.com [216.223.192.68]) i5AKNvFI047319 for ; Thu, 10 Jun 2004 16:23:57 -0400 (EDT) (envelope-from gcoon@inch.com) Date: Thu, 10 Jun 2004 16:23:40 -0400 (EDT) From: Gerald To: freebsd-java@freebsd.org Message-ID: <20040610161023.Y56873@kod.inch.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Tomcat apache java freebsd Ugh! X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 20:23:49 -0000 Hi folks, Java apparently is supposed to work nicely on FreeBSD. It's even got a mailing list dedicated to it. After jumping through hoops to get the port version of jdk14 installed (not the linux one) I have a working Tomcat + jdk14 on freebsd 4.8. I'm looking to hook tomcat in to apache now so I can let apache do the SSL. I see there is a port mod_webapp but it did many odd things to me and in short is not working at the moment. This is where I'll start my question... mod_webapp complained about not finding the apr source. I did a make in /usr/ports/devel/apr and then jumped back in the mod_webapp workdir to ./configure --with-apr=/usr/ports/devel/apr/work/apr* and then did a make in /usr/ports/www/mod_webapp and that installed fine. I then installed apr from the port make install clean, and that installed /usr/local/lib/libapr-0.so.9. mod_webapp added his lines to httpd.conf and apachectl configtest yields: Cannot load /usr/local/libexec/apache/mod_webapp.so into server: /usr/local/lib/libapr-0.so.9: Undefined symbol "pthread_cond_signal" Shouldn't the port have linked to the pthread library properly to make this error go away? Is there a way to manually force this in the port? Is there a better way to hook apache in to tomcat? I knew I was in for a treat when I had to trick jdk14 in to installing. If anyone is curious about that problem and workaround: Problem: http://www.freebsd.org/cgi/query-pr.cgi?pr=java/61407 Solution: http://lists.freebsd.org/mailman/htdig/freebsd-java/2003-December/001333.html Gerald