LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-27-2005, 09:39 PM   #1
rollinpark
LQ Newbie
 
Registered: Jan 2005
Posts: 10

Rep: Reputation: 0
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.
 
Old 01-28-2005, 12:48 AM   #2
rollinpark
LQ Newbie
 
Registered: Jan 2005
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in configuring Tomcat with Apache ambuj Linux - Software 2 04-19-2004 09:02 AM
Apache and Tomcat Configuration Problem inspiration Linux - Software 0 04-19-2004 01:46 AM
tomcat apache problem..please help Sridhar Guntur Linux - Software 3 10-08-2002 10:44 AM
Apache, Tomcat problem with mod_jk WaveyDave Linux - Software 0 09-20-2001 08:28 AM
Apache with Tomcat link xaviescuer Programming 0 06-13-2001 06:18 AM


All times are GMT -5. The time now is 02:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration