installing mod_jk

Michael Vince mv at thebeastie.org
Fri May 5 02:13:05 UTC 2006


Tomas Palfi wrote:

>Dear all,
>
>I am trying to install the tomcat connector on freebsd-6.0 and I am
>constantly having the following problems.  I have tried various versions
>but with no luck, the problem is still the same.  Has someone came
>across the same problem?
>
>Configuration run with apxs options only but that shouldn't make any
>difference.
>
>worker# make
>Making all in common
>/bin/csh ../libtool --mode=compile gcc -I/usr/local/apache/include -g
>-O2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DJK_PREFORK -g -O2
>-I /usr/local/jdk1.4.2/include -I /usr/local/jdk1.4.2/include/ -c
>./jk_ajp12_worker.c -o ./jk_ajp12_worker.lo
>SED=/usr/bin/sed: Command not found.
>Xsed=/usr/bin/sed -e s/^X//: Command not found.
>Missing }.
>*** Error code 1
>
>Stop in
>/usr/local/src/jakarta-tomcat-connectors-1.2.14.1-src/jk/native/common.
>*** Error code 1
>
>Stop in /usr/local/src/jakarta-tomcat-connectors-1.2.14.1-src/jk/native.
>worker#
>
>
>many thanks
>
>tom
>
>--
>tp
>  
>
Try using the latest Apache 2.2.2 its quite stable in my eyes.
I have been benchmarking and testing it since the long going 2.1 devel 
series and its very stable and refined.
Apache 2.2 is really Apache at its best.
Just remember to compile in the non default mod_proxy modules with 
something like this.

portupgrade -N -m 'WITH_MPM=worker -DWITH_PROXY_MODULES' 
/usr/ports/www/apache22

Then use something as simple as this directive in your virtualhost 
configuration to link to your Tomcat
ProxyPass /servlets-examples ajp://127.0.0.1:8009/servlets-examples

Cheers,
Mike







More information about the freebsd-java mailing list