From owner-freebsd-java@FreeBSD.ORG Sat Dec 10 06:47:28 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 9226816A41F for ; Sat, 10 Dec 2005 06:47:28 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6A9543D64 for ; Sat, 10 Dec 2005 06:47:27 +0000 (GMT) (envelope-from fredericdelagoublaye@free.fr) Received: from iava (mut38-2-82-224-178-62.fbx.proxad.net [82.224.178.62]) by smtp2-g19.free.fr (Postfix) with SMTP id 08E645C8DE for ; Sat, 10 Dec 2005 07:47:26 +0100 (CET) Message-ID: <01b101c5fd55$935e3780$0400a8c0@iava> From: =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= To: References: <001601c5fb7a$cd81b9a0$0400a8c0@iava> <439786EB.5000503@roq.com> Date: Sat, 10 Dec 2005 07:47:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Cc: Subject: *** need help *** apache tomcat mod_proxy_ajp.so 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: Sat, 10 Dec 2005 06:47:28 -0000 Hi, I need to use Apache 22 Tomcat 5.5.12. I already know that I have to include in httpd.conf: LoadModule proxy_ajp_module libexec/apache22/mod_proxy_ajp.so How can I install the mod_proxy_ajp.so on FreeBSD 6.0 ? I used this command to install apache22: #cd /usr/ports/www/apache22 #make install clean No error and apache22 is working well # pkg_info | grep portupgrade portupgrade-20041226_9 FreeBSD ports/packages administration and management tool s # pkg_info | grep apache apache-2.2.0_1 Version 2.2 of Apache web server with prefork MPM. # /usr/local/sbin/portupgrade -RrN -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' /usr/ports/www/apache22 [Updating the pkgdb in /var/db/pkg ... - 129 packages found (-1 +1) (...). done] ** No such installed package or port: /usr/ports/www/apache22 # whereis mod_proxy_ajp.so mod_proxy_ajp.so: There is nothing in the /libexec directory # cd /libexec/ # ls ld-elf.so.1 May be I miss something in the apache installation. Thanks for support Frederic ----- Original Message ----- From: "Michael Vince" To: "Frédéric de la Goublaye" Cc: Sent: Thursday, December 08, 2005 2:05 AM Subject: Re: *** need help *** apache tomcat mod_jk FreeBSD 6.0 > 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" > > >