tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PELOQUIN,JEFFREY (HP-Boise,ex1)" <>
Subject RE: Apache2 and mod_jk
Date Wed, 08 Jan 2003 19:38:48 GMT
One potential problem is that you have 8009 in your file 
but have 8008 in the your server.xml  

-----Original Message-----
From: Bill []
Sent: Wednesday, January 08, 2003 7:24 AM
To: tomcat user
Subject: Apache2 and mod_jk

I've been holding off on posting on my problem because there have been a
wealth of posts on this topic.  However, the advice/suggestions I have
seen havent led me to a working system.

I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 using mod_jk. 
I've followed instructions for this task from several sources and
nothing seems to be working.

Here are the steps I followed:

1)  Added the following to httpd.conf:

LoadModule jk_module modules/
This step also says to add the AddModule directive.  This directive does
not exist for 2.0 nor was I able to find an analogous directive to
replace it.    

2)  I have the following in /usr/local/tomcat/conf/jk/

workers.list= ajp13


3)  I have the following in httpd.conf:

JkWorkersFile /usr/local/tomcat/conf/jk/
JkLogFile /usr/local/apache2/log/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

Include /usr/local/tomcat/conf/auto/mod_jk.conf

4) Here is my server.xml entry:

<Server port="8005" shutdown="SHUTDOWN" debug="0">
    <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"/>

    <Service name="Tomcat-Apache">

     <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
        port="8008" minProcessors="5" maxProcessors="75"
        acceptCount="10" debug="0"/>

     <Engine name="Apache" defaultHost="" debug="0"    
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="apache_log." suffix=".txt"
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <Host name="" debug="0" appBase="webapps" 
	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"

        <Valve className="org.apache.catalina.valves.AccessLogValve"
                directory="logs" prefix=""
		suffix=".txt" pattern="common"/>
No errors show up in the access log but the following error shows up in
the host log ($TOMCAT_HOME/logs/apache_log.2003-01-08.txt):

2003-01-08 13:07:57 Ajp13Processor[8008][4] [Ajp13] incomplete read,
waited #-1 got only 0

And this is what I get in catalina.log:

Unable to open config file
Starting service Tomcat-Apache
Apache Tomcat/4.0.6
Unable to open config file
BAD packet 18245
In: : [B@45fde0 4/21540
47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET.............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................
This goes on forever so I only included to the first few lines of the
first packet...

Any ideas what I missed?  I did a web search on the error and got a
couple of hits but none of them panned out.  




To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message