Yep.  

1. For Apache 2, you don't need AddModule

2. Unless it's a typo, your workers.properties says the Ajp13Connector is on
8009, yet your server.xml has it on 8008.

3. You don't have a Context element in server.xml, unless you left it out
when pasting.

If 2 is a typo, and 8009 is used for both, all is good.  If 3 is deliberate,
please post your Context entry and the contents of mod_jk.conf.

John

> -----Original Message-----
> From: Bill [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 08, 2003 9: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/mod_jk.so
>     
> 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.properties
> 
> workers.list= ajp13
> worker.ajp13.type=ajp13
> 
> worker.ajp13.host=192.168.1.250
> worker.ajp13.port=8009
> 
> worker.ajp13.cachesize=10
> worker.ajp13.cache_timeout=600
> worker.ajp13.socket_keepalive=1
> worker.ajp13.socket_timeout=300
> 
>       
> 3)  I have the following in httpd.conf:
> 
> JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
> 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"
>         enableLookups="true"
>         acceptCount="10" debug="0"/>
> 
>      <Engine name="Apache" defaultHost="192.168.1.250" debug="0"    
>         appBase="webapps">
>       
>       <Logger className="org.apache.catalina.logger.FileLogger"
>               prefix="apache_log." suffix=".txt"
>               timestamp="true"/>
>       <Realm className="org.apache.catalina.realm.MemoryRealm" />
> 
>       <Host name="192.168.1.250" debug="0" appBase="webapps" 
>       unpackWARs="true">
>         
>       <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>                 append="true"/>
> 
>         <Valve className="org.apache.catalina.valves.AccessLogValve"
>                 directory="logs" prefix="192.168.1.250_access_log."
>               suffix=".txt" pattern="common"/>
>       </Host>
>     </Engine>
>   </Service>
> </Server>
>       
> 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  | ................
> <snip>
> 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.  
> 
> Thanks
> 
> -b
> 
> 
>       
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to