Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

jk2 configuration

Emerson Cargnin

2004-04-26

Replies:

I did everything to make apache send requests to tomcat based on a
how-to I found at:

http://cymulacrum.net/writings/tomcat5/c840.html

The error I see at apache error:

[Mon Apr 26 13:54:54 2004] [debug] ../../server/apache2/mod_jk2.c(426):
mod_jk2 Create config for default server (null)

Is this normal (the null server....)

here goes my configuration files:

http.conf:

LoadModule jk2_module /usr/lib/apache2/mod_jk2.so

<tomcatdir>/conf/

# Set the desired handler list
# handler.list=apr,request,channelJni
handler.list=apr,request,channelUnix,shm
#
shm.file=/home/emersonc/jakarta-tomcat-5.0.19/logs/jk2.shm
channelUnix.file=/home/emersonc/jakarta-tomcat-5.0.19/work/jk2.socket
size=10485760


# Dynamic Library
serverRoot=/etc/httpd2
apr.NativeSo=/usr/lib/apache2/libjkjni.so


two question:
- do I really need those two files? (shm and socket)
- Do I need to set the jni lib???

worker2.properties:


#workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/home/emersonc/jakarta-tomcat-5.0.19/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/home/emersonc/jakarta-tomcat-5.0.19/work/jk2.socket
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/home/emersonc/jakarta-tomcat-5.0.19/work/jk2.socket
channel=channel.un:/home/emersonc/jakarta-tomcat-5.0.19/work/jk2.socket

# Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/servlet-examples/*]

# Uri mapping
[uri:/connManager/*]

[uri:/sgip/*]

# Uri mapping for MyFirst
[uri:/jsp-examples/*]

# Uri mapping for MyFirst
[uri:/manager/*]


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.