Tried all of the below from scratch, but still having the following
error:
[root@(protected)
Starting httpd: Syntax error on line 211 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_jk2.so into server:
/etc/httpd/modules/mod_jk2.so: undefined symbol: apr_socket_send
[FAILED]
When I looked at line 211 of the specified file, it contained the line:
LoadModule jk2_module modules/mod_jk2.so
Can anyone help?
Thanks,
Ken
> -----Original Message-----
> From: Eric Noel [mailto:ericnoel@(protected)]
> Sent: Monday, April 26, 2004 6:42 PM
> To: Tomcat Users List
> Subject: Re: Having trouble getting Apache+Tomcat+mod_jk2.so
> to work together
>
>
> On 4/27/2004 9:35 AM, Ken Ramirez wrote:
>
> > I'm getting the following message when trying to run Apache (after
> > Tomcat and JK2 have been installed): [root@(protected)
> > httpd start Starting httpd: Syntax error on line 1 of
> > /etc/httpd/conf.d/jk2.conf: Cannot load
> /etc/httpd/modules/mod_jk2.so
> > into server:
> > /etc/httpd/modules/mod_jk2.so: undefined symbol: apr_socket_send
> > [FAILED]
> >
> > Platforms & Version:
> > 1. Redhat Linux 9.0
> > 2. Apache HTTP 2.0.49
> > 3. Tomcat 5.0.19
> > 4. JK2 2.0.4
> >
> > I followed the instructions at the following website in order to do
> > the
> > installation:
> > http://www.reliablepenguin.com/clients/misc/tomcat/
> >
> > I was able to get Apache compiled and to run successfully
> on it's own.
> > I was also able to do the same with Tomcat 5, but when I
> tried to tie
> > them together using the JK2 connector, the message above was the
> > result.
> >
> > I'm at one of the last steps trying to get this all to
> work, but can't
> > get passed this point. Can someone help?
> >
> > Ken Ramirez
> > kramirez@(protected)
>
> >
> > <http://www.plaxo.com/signature> Signature powered by
> Plaxo ... Want a
> > signature like this?
> >
> >
> though not that neat to look at, anyway here is what i did
>
> ## Clean-up
> rpm -e portmap nfs-utils ypbind yp-tools redhat-config-nfs fam
> gnome-vfs2 gtkhtml2 gnome-python2-gtkhtml2 libgnomeui libgnome
> libbonoboui gnome-python2-bonobo gnome-python2 redhat-config-network
> redhat-config-services redhat-config-httpd redhat-config-packages
>
> ### more cleanup
> rpm -e Xft pango gtk2 qt gnome-python2-canvas-1.99.11-8
> pygtk2-1.99.12-7 libgnomecanvas-2.0.2-1 gail-0.17-2
> redhat-config-mouse-1.0.1-2 redhat-config-soundcard-1.0.1-2
> redhat-switch-printer-gnome-0.5.12-1 redhat-switchmail-gnome-0.5.14-1
> redhat-config-kickstart-2.3.3-3 redhat-config-keyboard-1.0.1-1
> redhat-config-securitylevel-1.0.1-1 redhat-config-date-1.5.2-10
> redhat-logviewer-0.8.3-2 redhat-config-users-1.1.1-2
> redhat-config-rootpassword-1.0.1-1 redhat-config-language-1.0.1-6
> pygtk2-libglade-1.99.12-7 GConf2-1.2.1-3 libglade2-2.0.0-2
> usermode-gtk-1.63-1 usermode-gtk-1.63-1 unixODBC-2.2.2-3
> authconfig-gtk-4.2.12-3
>
> ### more cleanup hopefully, not forgot something
> rpm -e XFree86-Mesa-libGL XFree86-Mesa-libGLU XFree86-font-utils
> XFree86-libs XFree86-truetype-fonts XFree86-xfs ghostscript-7.05-20
> Xaw3d-1.5-16 gnome-libs-1.4.1.2.90-22 redhat-config-proc-0.18-1
> gtk+-1.2.10-22 VFlib2-2.25.6-8 Xaw3d-1.5-16 imlib-1.9.13-9
> emacs-21.2-18
> gimp-print-4.2.1-5 ghostscript-fonts-5.50-7 chkfontpath-1.9.6-3
> emacs-leim-21.2-18 psgml-1.2.3-5 libungif-4.1.0-13 urw-fonts-2.0-26
>
> ## install tomcat5
> tar -xzvf jakarta-tomcat-5.0.19.tar.gz
> mv jakarta-tomcat-5.0.19 /usr/local/
> cd /usr/local
> ln -s /usr/local/jakarta-tomcat-5.0.19 /usr/local/tomcat5
> ln -s /usr/local/tomcat5 /tomcat5
>
> ## Create /etc/init.d/tomcat5
> #!/bin/sh
> #
> # Startup script for Tomcat, the Apache Servlet Engine
> #
> # chkconfig: 345 80 20
> # description: Tomcat is the Apache Servlet Engine
> # processname: tomcat
> # pidfile: /var/run/tomcat.pid
> #
> # Mike Millson <mmillson@(protected)>
> #
> # version 1.02 - Clear work directory on shutdown per John Turner
> suggestion.
> # version 1.01 - Cross between RedHat Tomcat RPM and Chris
> Bush scripts
>
> PATH=$PATH:/usr/local/java/bin
> export PATH
>
> JAVA_HOME=/usr/local/java
> export JAVA_HOME
>
> # Tomcat name :)
> TOMCAT_PROG=tomcat
>
> # if TOMCAT_USER is not set, use tomcat like Apache HTTP
> server if [ -z "$TOMCAT_USER" ]; then
> TOMCAT_USER="tomcat"
> fi
>
> RETVAL=0
>
> # start and stop functions
> start() {
> echo -n "Starting tomcat: "
>
> chown -R $TOMCAT_USER:$TOMCAT_USER /usr/local/tomcat5/*
> #chown -R $TOMCAT_USER:$TOMCAT_USER /home/tomcat/*
> su -l $TOMCAT_USER -c '/usr/local/tomcat5/bin/startup.sh'
> RETVAL=$?
> echo
> [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
> return $RETVAL
> }
>
> stop() {
> echo -n "Stopping tomcat: "
> su -l $TOMCAT_USER -c '/usr/local/tomcat5/bin/shutdown.sh'
> RETVAL=$?
> echo
> [ $RETVAL = 0 ] && rm -f /var/lock/subsys/tomcat
> /var/run/tomcat.pid
> rm -rf /usr/local/tomcat5/work/*
> }
>
> # See how we were called.
> case "$1" in
> start)
> start
> ;;
> stop)
> stop
> ;;
> restart)
> stop
> # Ugly hack
> # We should really make sure tomcat
> # is stopped before leaving stop
> sleep 2
> start
> ;;
> *)
> echo "Usage: $0 {start|stop|restart}"
> exit 1
> esac
>
> exit $RETVAL
>
> ## Link
> useradd -g tomcat tomcat
> chkconfig --add tomcat5
> chkconfig --level 5 tomcat5 on
>
> ## compile mod_jk2 Jakarta Connector
> tar -xzvf jakarta-tomcat-connectors-jk2-src-current.tar.gz
> mv jakarta-tomcat-connectors-jk2-2.0.2-src jk2
> cd jk2/jk/native2
> ./buildconf.sh
> chmod 755 buildconf.sh
> ./buildconf.sh
> ./configure --with-apxs2=/usr/sbin/apxs --with-apr-lib=/usr/lib
> --with-tomcat-41=/usr/local/tomcat5 --with-java-home=/usr/local/java
> --with-jni
> make
> cp ../build/jk2/apache2/mod_jk2.so /usr/lib/httpd/modules/
>
> ###
> touch /tomcat5/logs/jk2.shm
> chown tomcat:tomcat /tomcat5/logs/jk2.shm
> usermod -G apache,tomcat apache
>
> ###
> vi /etc/httpd/conf/httpd.conf
> LoadModule jk2_module modules/mod_jk2.so
>
> ###
> vi /etc/httpd/conf/workers2.properties
> [logger.file:0]
> level=DEBUG
> file=/var/log/jk2.log
>
> [shm:]
> file=/usr/local/tomcat5/jk2.shm
> size=1048576
> debug=0
> disabled=0
>
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=5
> tomcatId=localhost:8009
>
> # Define the servlet examples proxy that comes with Tomcat
> [uri:/servlets-examples/*] info=Servlet prefix mapping
>
> # Define the JSP examples proxy that comes with Tomcat
> [uri:/jsp-examples/*] info=JSP prefix mapping
>
> ###
> vi /usr/local/tomcat5/conf/jk2.properties
> handler.list=channelSocket,request
> channelSocket.port=8009
> channelUnix.file=/usr/local/tomcat5/work/jk2.socket
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)