From owner-freebsd-java@FreeBSD.ORG Thu Dec 8 01:06:01 2005 Return-Path: X-Original-To: freebsd-java@FreeBSD.org 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 6D35F16A41F for ; Thu, 8 Dec 2005 01:06:01 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (ppp166-27.static.internode.on.net [150.101.166.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E83943D58 for ; Thu, 8 Dec 2005 01:05:48 +0000 (GMT) (envelope-from mv@roq.com) Received: from vault.mel.jumbuck.com (localhost [127.0.0.1]) by vault.mel.jumbuck.com (Postfix) with ESMTP id 6F2E38A00D; Thu, 8 Dec 2005 12:05:47 +1100 (EST) Received: from [192.168.46.52] (unknown [192.168.46.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vault.mel.jumbuck.com (Postfix) with ESMTP id 3AC5C8A00A; Thu, 8 Dec 2005 12:05:47 +1100 (EST) Message-ID: <439786EB.5000503@roq.com> Date: Thu, 08 Dec 2005 12:05:47 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051202 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= References: <001601c5fb7a$cd81b9a0$0400a8c0@iava> In-Reply-To: <001601c5fb7a$cd81b9a0$0400a8c0@iava> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-java@FreeBSD.org Subject: Re: *** need help *** apache tomcat mod_jk FreeBSD 6.0 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: Thu, 08 Dec 2005 01:06:01 -0000 Use Apache2.2 which is the latest release stable version of Apache over the 2.1 series which are just experimental betas and should never be used in an production environment, but the 2.1 series have shown that 2.2 is really ready to go straight into production use as far as I am concerned. I have been testing with Apache 2.2 which seems to have tons of little things that are much better about it over the old 2.0 Apache series, one big one is the new built in AJP protocol module for Tomcat, I am using Tomcat 5.5.9 which appears to work better with AJP then Tomcat 5.0.x. As long as you aren't under extereme load AJP gives the best performance but if you really push the load on the server you might get 503 status errors in Apache logs, but using AJP does perform more requests/sec because it uses less CPU over using mod_proxy HTTP style connectors to Tomcat. I use a portupgrade command for the apache22 port to install the proxy modules and worker MPM via a single portupgrade command. portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' /usr/ports/www/apache22 Make sure you have 'LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so' enabled in httpd.conf Then in the virtual host directive of Apache link it with Tomcat 5.5.9 like so ProxyPass /javacontext ajp://127.0.0.1:8009/javacontext Cheers, Mike Frédéric de la Goublaye wrote: > I tried to compile the latest mod_jk downloaded from: > http://tomcat.apache.org/connectors-doc/ > > ./configure --with-apxs=/usr/local/sbin/apxs > > Making all in common > /bin/sh /usr/local/share/apache21/build/libtool --silent > --mode=compile gcc -I/usr/local/include/apache21 -g -O2 -O2 > -fno-strict-aliasing -pipe -DHAVE_APR > -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr/include > -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/apr-util/include > -g -O2 -I/usr/ports/www/apache21/work/httpd-2.1.4-alpha/srclib/pcre -I > /include -I /include/ -c ./jk_ajp12_worker.c -o ./jk_ajp12_worker.lo > /usr/local/share/apache21/build/libtool: Can't open > /usr/local/share/apache21/build/libtool: No such file or directory > *** Error code 2 > > Stop in > /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native/common. > > *** Error code 1 > > Stop in > /usr/local/tomcat-5.5.12/jakarta-tomcat-connectors-1.2.15-src/jk/native. > > > so so can you help me to compile a mof_jk for Apache21 and > Tomcat5.5.12 ? > > Many thanks in advance :+) > > Well I am used to deal with Java and Tomcat. > I add preference for FreeBSD but as there are so ... many ??? issues > with Java/Tomcat/FreeBSd maybe I have better to use a Linux Redhat > something operating systems to make production server. What is a pity > to think that! > > Is it reasonable to use FreeBSd for a Java/Tomcat/Apache server ? > > I already compile and install with success JDK1.4, Tomcat 5.5.12 and > even SQLITE wrapper for Java under FreeBSD. The next step and the last > in mod_jk ... > > I love FreeBSD so can you help me ? > > Thanks in advance > > Frédéric > > > ----- Original Message ----- From: "Frédéric de la Goublaye" > > To: > Sent: Wednesday, December 07, 2005 10:31 PM > Subject: apache tomcat mod_jk on FreeBSD 6.0 > > >> Hi, >> >> I need to install the connection between Apache21 and Tomcat 5.5.12 >> with mod_jk. >> >> Which package should I install ? /usr/ports/www/mod_jk-apache2 ? >> >> install -o root -g wheel -m 444 >> /usr/ports/www/mod_jk2-apache2/work/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/../conf/workers2.properties >> /usr/local/etc/apache2/workers2.properties.sample >> install: /usr/local/etc/apache2/workers2.properties.sample: No such >> file or directory >> *** Error code 71 >> >> I think I can find my way to connect Apache and Tomcat after the good >> installation of mod_jk. >> >> Thanks in advance >> >> Frédéric > > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"