Thank you for both! On Fri, Jul 15, 2016 at 3:04 AM, Rainer Jung <rainer.j...@kippdata.de> wrote:
> Am 12.07.2016 um 19:44 schrieb Wayne Li: > >> Hi, >> >> I have a servlet/jsp application running on tomcat 7.0.47. There are no >> static html files. >> Now I am try to use apache 2.4.7 (Ubuntu) >> as the front and forward eveything to tomcat. I installed mod_jk using >> Ubuntu's software >> center.. Things are working. But I have errors in >> /var/log/apache2/mod_jk.log: >> >> [Mon Jul 11 20:19:32.261 2016] [1175:140389159810944] [info] >> init_jk::mod_jk.c (3365): mod_jk/1.2.37 initialized >> [Mon Jul 11 20:19:32.279 2016] [1175:140389159810944] [error] >> extension_fix::jk_uri_worker_map.c (564): Could not find worker with name >> 'jk-manager' in uri map post processing. >> [Mon Jul 11 20:19:32.279 2016] [1175:140389159810944] [error] >> extension_fix::jk_uri_worker_map.c (564): Could not find worker with name >> 'jk-status' in uri map post processing. >> [Mon Jul 11 20:19:32.386 2016] [1177:140389159810944] [info] >> init_jk::mod_jk.c (3365): mod_jk/1.2.37 initialized >> [Mon Jul 11 20:19:32.386 2016] [1177:140389159810944] [error] >> extension_fix::jk_uri_worker_map.c (564): Could not find worker with name >> 'jk-manager' in uri map post processing. >> [Mon Jul 11 20:19:32.386 2016] [1177:140389159810944] [error] >> extension_fix::jk_uri_worker_map.c (564): Could not find worker with name >> 'jk-status' in uri map post processing. >> >> If I add the following lines, the errors go away: >> >> worker.list=jk-status >> worker.jk-status.type=status >> worker.jk-status.read_only=true >> worker.list=jk-manager >> worker.jk-manager.type=status >> >> But the added line read funny. The same thing appears on the left-side of >> the equal sign twice. >> Are they correct? Do I need these lines? Can I ignore the errors? >> >> Any information would be appreciated. Thanks in advance. >> > > In addition to André's excellent tutorial: mod_jk knows that some > properties configured via workers.properties take (comma-separated) lists > as values. Since sometimes maintaining these lists is error-prone, it > allows you to define the properties multiple times and will collect all > given values into one big list. That makes maintaining hte list a more > modular job. > > In your case the following is exactly equivalent: > > Either: > > worker.list=jk-status,jk-manager,myworker > > Or: > > worker.list=jk-status > #Some more config items concerning jk-status > worker.list=jk-manager > #Some more config items concerning jk-manager > worker.list=myworker > #Some more config items concerning myworker > > In both cases the internal value of worker.list after parsing the complete > file will be "jk-status,jk-manager,myworker". > > So what look a bit funny to you was supposed to be helpful ;) > > Can you ignore the errors: No. > > - If you don't want the jk-status and/or jk-manager worker features, then > look for the JkMount directives where you referenced them (or entried in a > uriworkermap.properties file but that's rarely used). > > - If you want to use the jk-status and/or jk-manager workers, you need to > define them in workers.properties like you did above. > > Regards, > > Rainer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >