C
cji_work
Hi fellows,
I am trying to make this "Apache2, mod_jk2, Tomcat4.1" working together
on linux machine and so far no luck.
One thing that I am not sure is if a regular user can install the above
packages in his home dir to make it work, not a "root" person? As you
can see I am installing everything under "/home/cji".
Here are the details of settings in the files.
1. In the "workers2.properties" file:
"
# workers2.properties
# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=/home/cji/jakarta-tomcat-4.1.30/logs/jk2.shm
size=1048576
debug=0
disabled=0
# UNIX domain socket
[channel.un:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket]
tomcatId=localhost:8009
debug=0
# define the worker
[ajp13:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket]
channel=channel.un:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket
# Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.
[uri:/jkstatus/*]
group=status:status
# Uri mapping
[uri:/examples/*]
"
2. In the "jk2.properties" file:
"
# jk2.properties
# Configured for channel UNIX
# Set the desired handler list
handler.list=apr,request,channelUnix
# UNIX Domain socket location
channelUnix.file=/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket
# Dynamic Library
serverRoot=/etc/httpd2
apr.NativeSo=/home/cji/Apache/modules/jkjni.so
"
3. I have added following in the "server.xml" file:
"
....
<Connector port="8009" enableLookups="false" redirectPort="8443"
debug="1" protocol="AJP/1.3" />
....
"
The error I have seen in my "<Apache>/logs/errors.log" file is :
"
[Thu Jun 09 14:29:32 2005] [error] channelUn.connect() connect failed
111 Connection refused
[Thu Jun 09 14:29:32 2005] [error] ajp13.connect() failed
ajp13:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket
[Thu Jun 09 14:29:32 2005] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Thu Jun 09 14:29:32 2005] [error] ajp13.service() Error forwarding
ajp13:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket 1 1
[Thu Jun 09 14:29:32 2005] [error] lb.service() worker failed 120000
for ajp13:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket
[Thu Jun 09 14:29:32 2005] [error] lb_worker.service() all workers in
error or disabled state
[Thu Jun 09 14:29:32 2005] [error] mod_jk2.handler() Error connecting
to tomcat 120000, status 503
"
I started the Tomcat first, then the Apache Server.
One thing that I have noticed is there is NO such "jk2.socket" file
generated under "<tomcat>/worker/". I have also searched NET and found
some similar postings. Someone's suggestion was to "touch" that file. I
did, same result.
Any Help ?
Thanks a lot
-cji
I am trying to make this "Apache2, mod_jk2, Tomcat4.1" working together
on linux machine and so far no luck.
One thing that I am not sure is if a regular user can install the above
packages in his home dir to make it work, not a "root" person? As you
can see I am installing everything under "/home/cji".
Here are the details of settings in the files.
1. In the "workers2.properties" file:
"
# workers2.properties
# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers
file=/home/cji/jakarta-tomcat-4.1.30/logs/jk2.shm
size=1048576
debug=0
disabled=0
# UNIX domain socket
[channel.un:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket]
tomcatId=localhost:8009
debug=0
# define the worker
[ajp13:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket]
channel=channel.un:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket
# Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.
[uri:/jkstatus/*]
group=status:status
# Uri mapping
[uri:/examples/*]
"
2. In the "jk2.properties" file:
"
# jk2.properties
# Configured for channel UNIX
# Set the desired handler list
handler.list=apr,request,channelUnix
# UNIX Domain socket location
channelUnix.file=/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket
# Dynamic Library
serverRoot=/etc/httpd2
apr.NativeSo=/home/cji/Apache/modules/jkjni.so
"
3. I have added following in the "server.xml" file:
"
....
<Connector port="8009" enableLookups="false" redirectPort="8443"
debug="1" protocol="AJP/1.3" />
....
"
The error I have seen in my "<Apache>/logs/errors.log" file is :
"
[Thu Jun 09 14:29:32 2005] [error] channelUn.connect() connect failed
111 Connection refused
[Thu Jun 09 14:29:32 2005] [error] ajp13.connect() failed
ajp13:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket
[Thu Jun 09 14:29:32 2005] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Thu Jun 09 14:29:32 2005] [error] ajp13.service() Error forwarding
ajp13:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket 1 1
[Thu Jun 09 14:29:32 2005] [error] lb.service() worker failed 120000
for ajp13:/home/cji/jakarta-tomcat-4.1.30/work/jk2.socket
[Thu Jun 09 14:29:32 2005] [error] lb_worker.service() all workers in
error or disabled state
[Thu Jun 09 14:29:32 2005] [error] mod_jk2.handler() Error connecting
to tomcat 120000, status 503
"
I started the Tomcat first, then the Apache Server.
One thing that I have noticed is there is NO such "jk2.socket" file
generated under "<tomcat>/worker/". I have also searched NET and found
some similar postings. Someone's suggestion was to "touch" that file. I
did, same result.
Any Help ?
Thanks a lot
-cji