Wrox Home  
Search P2P Archive for: Go

  Return to Index  

apache_tomcat thread: Apache 2.0.44 and Tomcat 2.1.18


Message #1 by "Gambit" <marc.pieniazek@b...> on Wed, 22 Jan 2003 04:13:01
Hi
I have installed Apache 2.0.44 and Tomcat 2.1.18 on my Windows 2000 server
machine as services.
Both work fine as standalone webservers

However I am having trouble connecting them so that Apache can pass .jsp
pages to Tomcat before serving them up

I have downloaded mod_jk2-2.0.43.dll and stuck it in the Apache/modules folder

I have added the following line to Apache's httpd.conf:
LoadModule jk2_module modules/mod_jk2.dll (after the other LoadModule
statements)

I have followed the instructions on the Jakarta homepage:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/
and put jk2.properties in Tomcat_home/conf and workers2.properties in
apache/conf

This is the contents of jk2.properties:
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess

This is the contents of workers2.properties:
# Define the communication channel 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

Whenever I try to load the page http://localhost/examples I get an internal
server error

This is the message from the error log for the relevant time:
[Wed Jan 22 03:37:40 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Jan 22 03:37:40 2003] [error] lb.service() worker failed 120000 for
ajp13:localhost:8009
[Wed Jan 22 03:37:40 2003] [error] lb.service() unrecoverable error...
[Wed Jan 22 03:37:40 2003] [error] mod_jk.handler() Error connecting to
tomcat 120000
[Wed Jan 22 03:37:43 2003] [error] workerEnv.init() create slot epStat.0 failed
[Wed Jan 22 03:37:43 2003] [error] lb.service() worker failed 120000 for
ajp13:localhost:8009
[Wed Jan 22 03:37:43 2003] [error] lb.service() unrecoverable error...
[Wed Jan 22 03:37:43 2003] [error] mod_jk.handler() Error connecting to
tomcat 120000

I just cannot see where I am going wrong. Any help would be really really
appreciated as this is now holding up some critical development issues

Many thanks
Message #2 by "Gambit" <marc.pieniazek@b...> on Wed, 22 Jan 2003 04:14:09
Oops the Tomcat version should read 4.1.18 not 2.1.18, sorry!

  Return to Index