Date: Thu, 08 Dec 2005 12:05:47 +1100 From: Michael Vince <mv@roq.com> To: =?ISO-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= <fredericdelagoublaye@free.fr> Cc: freebsd-java@FreeBSD.org Subject: Re: *** need help *** apache tomcat mod_jk FreeBSD 6.0 Message-ID: <439786EB.5000503@roq.com> In-Reply-To: <001601c5fb7a$cd81b9a0$0400a8c0@iava> References: <001601c5fb7a$cd81b9a0$0400a8c0@iava>
next in thread | previous in thread | raw e-mail | index | archive | help
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" > <fredericdelagoublaye@free.fr> > To: <freebsd-java@FreeBSD.org> > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439786EB.5000503>