Hi. I've been trying to configure Apache 2.0.44 and Tomcat 4.1.18 to work together 
under WinXP Pro with no success. Maybe somebody on the list allready did this and can 
point out the things I'm missing or doing wrong.

Here's what I've done so far:

1. Added the  LoadModule jk2_module modules/mod_jk2-2.0.43.dll line in Apache's 
httpd.conf file.

2. Modify Tomcat's server.xml file to define a Coyote/JK2 AJP 1.3 Connector on port 
8009 as follows:
  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" 
minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" 
acceptCount="10" debug="0" connectionTimeout="20000" useURIValidationHack="false" 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" />

3. Left unchanged the default Tomcat jk2.properties file. Here it is:
# 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

4. Tried to use some of the example workers2.properties file (which I placed in the 
Apache conf directory) shown in 
http://jakarta.apache-korea.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebex.html, like 
this:
 # define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009

After doing this Tomcat starts just fine, but Apache gives me this error messages on 
the Windows Event Viewer:

a)Event Type: Error
Event Source: Apache Service
Description: The Apache service named  reported the following error: >>> (OS 
10048)Only one usage of each socket address (protocol/network address/port) is 
normally permitted.  : make_sock: could not bind to address 0.0.0.0:80.

b) Event Type: Error
Event Source: Apache Service
Description: The Apache service named  reported the following error: >>> no listening 
sockets available, shutting down.

c) Event Type: Error
Event Source: Apache Service
Description: The Apache service named  reported the following error: >>> Unable to 
open logs.

    I'll appreciate any help.

    Kind regards,

    Carlos Cajina

Reply via email to