#StackBounty: #apache-2.4 #mod-jk #tomcat9 mod-jk installation can't find tomcat webapps

Bounty: 100

After have configured mod-jk to work in a system with ubuntu, apache2 and tomcat9, if i deploy a webapp app.war to my tomcat webapps folder, and try access with https://mydomain/app, I get a 404 error. My configuration:

/etc/apache2/sites-available/loja.conf

<VirtualHost ...>
        ServerAdmin ...
        ServerName ...
        ServerAlias ...
        DocumentRoot /home/kleber/www
        JkMount /app* ajp13_worker
</VirtualHost>

/etc/libapache2-mod-jk/workers.properties

workers.tomcat_home=/var/lib/tomcat9
workers.java_home=/usr/lib/jvm/default-java
ps=/

worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13_worker

/etc/apache2/mods-enabled/httpd-jk.conf

<IfModule jk_module>
    JkWorkersFile /etc/libapache2-mod-jk/workers.properties
    JkLogFile /var/log/apache2/mod_jk.log
    JkLogLevel info
    JkShmFile /var/log/apache2/jk-runtime-status
    JkWatchdogInterval 60
    <Location /jk-status>
        JkMount jk-status
        Require ip 127.0.0.1
    </Location>
    <Location /jk-manager>
        JkMount jk-manager
        Require ip 127.0.0.1
    </Location>
</IfModule>

anyone can see what I am missing here?

update

results for command tail /var/log/apache2/mod-jk.log:

[Wed Mar 25 20:15:03.297 2020] [8298:139710922832960] [error] extension_fix::jk_uri_worker_map.c (580): Could not find worker with name 'jk-status' in uri map post processing.
[Wed Mar 25 20:15:03.323 2020] [8306:139710922832960] [info] init_jk::mod_jk.c (3591): mod_jk/1.2.46 initialized
[Wed Mar 25 20:15:03.323 2020] [8306:139710922832960] [error] extension_fix::jk_uri_worker_map.c (580): Could not find worker with name 'jk-manager' in uri map post processing.
[Wed Mar 25 20:15:03.323 2020] [8306:139710922832960] [error] extension_fix::jk_uri_worker_map.c (580): Could not find worker with name 'jk-status' in uri map post processing.
[Wed Mar 25 20:20:02.892 2020] [8471:140030951885888] [info] init_jk::mod_jk.c (3591): mod_jk/1.2.46 initialized
[Wed Mar 25 20:20:02.892 2020] [8471:140030951885888] [error] extension_fix::jk_uri_worker_map.c (580): Could not find worker with name 'jk-manager' in uri map post processing.
[Wed Mar 25 20:20:02.892 2020] [8471:140030951885888] [error] extension_fix::jk_uri_worker_map.c (580): Could not find worker with name 'jk-status' in uri map post processing.
[Wed Mar 25 20:20:02.916 2020] [8477:140030951885888] [info] init_jk::mod_jk.c (3591): mod_jk/1.2.46 initialized
[Wed Mar 25 20:20:02.916 2020] [8477:140030951885888] [error] extension_fix::jk_uri_worker_map.c (580): Could not find worker with name 'jk-manager' in uri map post processing.
[Wed Mar 25 20:20:02.916 2020] [8477:140030951885888] [error] extension_fix::jk_uri_worker_map.c (580): Could not find worker with name 'jk-status' in uri map post processing


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.