LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Link apache tomcat problem (https://www.linuxquestions.org/questions/linux-software-2/link-apache-tomcat-problem-283116/)

rollinpark 01-27-2005 09:39 PM

Link apache tomcat problem
 
Dear all,

I am trying to link apache and tomcat5.5 via mod_jk2 on a RedHat 9 linux machine. I have make all the configuration and come up with error. My apache error log is as below. It seems cannot load the mod_jk2.

[Fri Jan 28 10:55:36 2005] [notice] Digest: done
[Fri Jan 28 10:55:37 2005] [error] jk2_init() Can't find child 3580 in scoreboar
d
[Fri Jan 28 10:55:37 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 10:55:37 2005] [error] jk2_init() Can't find child 3581 in scoreboar
d
[Fri Jan 28 10:55:37 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 10:55:37 2005] [error] jk2_init() Can't find child 3582 in scoreboar
d
[Fri Jan 28 10:55:37 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 10:55:37 2005] [error] jk2_init() Can't find child 3583 in scoreboar
d
[Fri Jan 28 10:55:37 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 10:55:37 2005] [error] jk2_init() Can't find child 3584 in scoreboar
d
[Fri Jan 28 10:55:37 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 10:55:37 2005] [error] jk2_init() Can't find child 3585 in scoreboar
d
[Fri Jan 28 10:55:37 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 10:55:37 2005] [error] jk2_init() Can't find child 3586 in scoreboar
d
[Fri Jan 28 10:55:37 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 10:55:37 2005] [error] jk2_init() Can't find child 3587 in scoreboar
d
[Fri Jan 28 10:55:37 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 10:55:37 2005] [notice] Apache/2.0.40 (Red Hat Linux) configured --
resuming normal operations
[Fri Jan 28 10:56:42 2005] [error] [client xxx.x.201.15] Directory index forbidd
en by rule: /var/www/html/
[Fri Jan 28 10:57:09 2005] [error] channelSocket.open() connect failed xxx.x.201
.108:8009 111 Connection refused
[Fri Jan 28 10:57:09 2005] [error] ajp13.connect() failed ajp13:xxx.x.201.108:80
09
[Fri Jan 28 10:57:09 2005] [error] ajp13.service() failed to connect endpoint er
rno=111 Connection refused
[Fri Jan 28 10:57:09 2005] [error] ajp13.service() Error forwarding ajp13:xxx.x
.201.108:8009 1 1
[Fri Jan 28 10:57:09 2005] [error] mod_jk.handler() Error connecting to tomcat 2
1000
[Fri Jan 28 10:57:29 2005] [error] channelSocket.open() connect failed xxx.x.201
.108:8009 111 Connection refused
[Fri Jan 28 10:57:29 2005] [error] ajp13.connect() failed ajp13:xxx.x.201.108:80
09
[Fri Jan 28 10:57:29 2005] [error] ajp13.service() failed to connect endpoint er
rno=111 Connection refused
[Fri Jan 28 10:57:29 2005] [error] ajp13.service() Error forwarding ajp13:xxx.x
.201.108:8009 1 1
[Fri Jan 28 10:57:29 2005] [error] mod_jk.handler() Error connecting to tomcat 2
1000
[Fri Jan 28 10:57:54 2005] [warn] child process 3580 still did not exit, sending
a SIGTERM
[Fri Jan 28 10:57:54 2005] [warn] child process 3581 still did not exit, sending
a SIGTERM
[Fri Jan 28 10:57:54 2005] [warn] child process 3582 still did not exit, sending
a SIGTERM
[Fri Jan 28 10:57:54 2005] [warn] child process 3583 still did not exit, sending
a SIGTERM
[Fri Jan 28 10:57:54 2005] [warn] child process 3584 still did not exit, sending
a SIGTERM
[Fri Jan 28 10:57:54 2005] [warn] child process 3585 still did not exit, sending
a SIGTERM
[Fri Jan 28 10:57:54 2005] [warn] child process 3586 still did not exit, sending
a SIGTERM
[Fri Jan 28 10:57:54 2005] [warn] child process 3587 still did not exit, sending
a SIGTERM


I put in the following config in httpd.conf

LoadModule jk2_module modules/mod_jk2.so

<Location "/*.jsp">
JkUriSet worker ajp13:xxx.x.201.108:8009
</Location>

<Location "/scrmypm">
JkUriSet worker ajp13:xxx.x.201.108:8009
</Location>


I put this in workers2.properties, same dir as the httpd.conf

[shm]
file=/etc/httpd/logs/shm.file
size=1048576

# socket channel
[channel.socket:xxx.x.201.108:8009]
port=8009
host=xxx.x.201.108

# worker for the connector
[ajp13:xxx.x.201.108:8009]
channel=channel.socket:xxx.x.201.108:8009


The tomcat conf/server.xml file I put this at the end
<Context path="" docBase="/var/www" debug="0" reloadable="true" crossContext="true"/>

Lastly I put this in conf/jk2.properties
channelSocket.port=8009


Did i miss out anything? I already install the mod_jk2 rpm for RH9. The mod_jk2.so file is in the modules dir in apache.
Thanks a lot.

rollinpark 01-28-2005 12:48 AM

I manage to get the config working now. I can display a jsp page sucessfully in apache. I still have some queries though. After i startup apache, i view the error_log file of apache and found this messages at below. I dont know whether its error or is it suppose to be like this. If its error how can I solve it.

[Fri Jan 28 14:36:19 2005] [notice] Digest: generating secret for digest authent
ication ...
[Fri Jan 28 14:36:19 2005] [notice] Digest: done
[Fri Jan 28 14:36:20 2005] [error] jk2_init() Can't find child 4138 in scoreboar
d
[Fri Jan 28 14:36:20 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 14:36:20 2005] [error] jk2_init() Can't find child 4139 in scoreboar
d
[Fri Jan 28 14:36:20 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 14:36:20 2005] [error] jk2_init() Can't find child 4140 in scoreboar
d
[Fri Jan 28 14:36:20 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 14:36:20 2005] [error] jk2_init() Can't find child 4141 in scoreboar
d
[Fri Jan 28 14:36:20 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 14:36:20 2005] [error] jk2_init() Can't find child 4142 in scoreboar
d
[Fri Jan 28 14:36:20 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 14:36:20 2005] [error] jk2_init() Can't find child 4143 in scoreboar
d
[Fri Jan 28 14:36:20 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 14:36:20 2005] [error] jk2_init() Can't find child 4144 in scoreboar
d
[Fri Jan 28 14:36:20 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 14:36:20 2005] [error] jk2_init() Can't find child 4145 in scoreboar
d
[Fri Jan 28 14:36:20 2005] [error] mod_jk child init 1 -2
[Fri Jan 28 14:36:20 2005] [notice] Apache/2.0.40 (Red Hat Linux) configured --
resuming normal operations


All times are GMT -5. The time now is 07:08 PM.