tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Cartier" <rcart...@snet.net>
Subject Help: Simple example to use tomcat 4.1.12 / Apache 1.3 and mod_jk ??
Date Mon, 16 Dec 2002 22:10:40 GMT
I having looking for a very simple howto
on how to get on RH 7.2

Tomcat 4.1.12 
Apache 1.3 
Mod_jk  or mod_jk2

working together possibly using the /examples that
are included with tomcat as a test bed.

I am confused on how to configure tomcat. 
I see Coyote/AJP13 and ajp13 in  the server.xml
file but I am unsure which one to  use.

There is also a discussion of jk2.properties
file but that one is all commented out and there
seems to be no clear example of what needs to
be done in the server.xml and jk2.properties
if anything that needs to be adjusted. 

On the Apache side I have tried both
mod_jk and mod_jk2 but the examples in the how to 
are either for mod_jk.so or mod_jk2.so
cant tell . It is very fustrating.

Does anyone have a very simple docs I can follow

==================================================

Here are some of my files


I added this to my httpd.conf in the beginning

LoadModule jk2_module          modules/mod_jk2.so
ADDModule  mod_jk2.c
--------------

at the bottom I added so that it would at least start


LoadModule jk2_module libexec/mod_jk2.so
AddModule mod_jk2.c
<IfModule mod_jk2.c>

 Jk2WorkersFile /etc/httpd/conf/workers.properties
 JkLogFile /var/log/httpd/mod_jk2.log
 JkLogLevel info
 JkLogStampFormat "(%a %b %d %H:%M:%S %Y) "
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat "%w %V %T"
 JkMount /examples/servlet/* worker1
 JkMount /examples/*.jsp worker1
</IfModule>


my worker2.properties file
============================
# Define 1 real worker using ajp13worker.list=worker1 
# Set properties for worker1 (ajp13)worker.worker1.type=ajp13 
worker.list=worker1
worker.worker1.host=localhost 
worker.worker1.port=8009 
worker.worker1.lbfactor=50 
worker.worker1.cachesize=10 
worker.worker1.cache_timeout=600 
worker.worker1.socket_keepalive=1 
worker.worker1.socket_timeout=300 




What I wind up is protocol errors in my catalina.out file

Ajp13Connector active threads=6
java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10]
    Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]]
    Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]]
    Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]]
    Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]]
    Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]]
    Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]]
===================================
BAD packet 256
In: : [B@958bf9 4/843
01 00 03 47 00 00 00 00 00 00 00 00 00 00 00 00  | ...G............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | ................

........


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message