You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Borland <jb...@calpoly.edu> on 2014/02/13 05:53:15 UTC

mod-jk stopped working

Apache 2.2 and Tomcat 6 on Linux Ubuntu 10.10

My connector worked fine for several years and then suddenly stopped 
working!  Now I get a "requested URL was not found on this server" error 
instead.  I've tried several things to fix this but no joy. Here is the 
current content of my two files:

==============================

workers.properties file -->

workers.tomcat_home=/usr/share/tomcat6
workers.java_home=/usr/lib/jvm/java-6-openjdk/jre
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

==============================

httpd.conf file -- >

LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile   /etc/libapache2-mod-jk/workers.properties
JkShmFile       /var/log/apache2/mod_jk.shM
JkLogFile       /var/log/apache2/mod_jk.log
JkLogLevel      info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JkMount /big41       ajp13_worker
JkMount /big41/*     ajp13_worker
JkMount /big50       ajp13_worker
JkMount /big50/*     ajp13_worker

JkMount /*.jsp ajp13_worker
JkMount /*/servlet/ ajp13_worker

==============================

I changed the JkLogLevel to debug, restarted Apache, and read through 
the long log file.  No errors and everything seems to have be setup 
correctly.  However, there was one strange occurrance.  It went through 
the entire setup process twice and gave me two of these log entries:
      [info] init_jk::mod_jk.c (2830): mod_jk/1.2.26 initialized
      [info] init_jk::mod_jk.c (2830): mod_jk/1.2.26 initialized

Now the log file is giving me a bunch of [debug] entries saying things 
similar to: "missing uri map for 
domU-12-31-39-04-58-57.compute-1.internal:/big41."  Also, I have a bunch 
of "missing uri map" entries for things present on the server that were 
never JkMounted.

Like I said, it used to work fine.  Any help or suggestions would be 
greatly appreciated.  Thank you!

Jim Borland


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod-jk stopped working

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jim,

On 2/15/14, 1:22 AM, Jim Borland wrote:
> Wow!  I put my JkMounts inside the VirtualHost directives and now
> it is working again.  Thank you very much!

Sounds like the mod_jk version and/or httpd was/were upgraded and you
didn't know. That's why a working configuration "suddenly" stopped
working.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTAh3fAAoJEBzwKT+lPKRY9HsP/3ZR74UNFvWHnQZTAASz+cWI
0gqIdBIhoSqyounDM+f3j6A43RAYmzShe01S0IzcElFPA6Ze0libXc9cgFGz11tM
WjILttc8I7e+p/7JaZaeHB8PlcYoZhZmS87bdJHBbm0pG0vAR8/wiXypdXqSPgv3
GvBw7+HEUoQClGz8alBuxgZjnpLtg0Fc/zaOCZEXSsKafa3l3zOJdlR7ZT3tPm5e
EByBGzESbnc4Qo1EML8CH3wBPTM6B2WbkCKjm+7VUYL74md/r2RrkhCPBHhoJc68
1askvu/BkN2j4aPcABl3KO+lq91iCfZdmFvonu8BYxKzvI2RcoRtgw/vPijgRLG4
wBwST8msIM6d5az5VYJ5AQ/GmO0rebkEq94z6cPGNbdTqVjDVXPp2mktKmZS7r5z
u9NkNUWY6s8sFcUUNcDREp3vlxs6AHZvSFSd9osP6PfOatuv3ed/A8mBULbOZcDA
hgsn3/tEuAsmbhTLZ84Id3/t/KGE22oJpo7rE5uMy4xI8ndYzYdpoH4RhTKR/BMY
dw1RhRHKd/cmJzwpVBjQ2Ay+brYxfau6f/u0hqnWITxbulaaOwdfs45oT48Km4f0
XTsHZUk4+jIApPKk+8aR/POycVd1O6REgJpzRxJJ/Bp+AzAF1pF1n4ilDLpiU5OI
RFVLtiOs1tZQUrJEB2PO
=FkIJ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod-jk stopped working

Posted by Jim Borland <jb...@calpoly.edu>.
Wow!  I put my JkMounts inside the VirtualHost directives and now it is working again.  Thank you very much!

On Feb 14, 2014, at 11:52 AM, Christopher Schultz <ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Jim,
> 
> On 2/12/14, 11:53 PM, Jim Borland wrote:
>> Apache 2.2 and Tomcat 6 on Linux Ubuntu 10.10
>> 
>> My connector worked fine for several years and then suddenly
>> stopped working!  Now I get a "requested URL was not found on this
>> server" error instead.
> 
> This sounds like a missing JkMount in httpd or even a non-deployed
> webapp in Tomcat. Can you tell which component it generating the page
> (httpd versus Tomcat)?
> 
> I've tried several things to fix this but no joy. Here is the
>> current content of my two files:
>> 
>> ==============================
>> 
>> workers.properties file -->
>> 
>> workers.tomcat_home=/usr/share/tomcat6 
>> workers.java_home=/usr/lib/jvm/java-6-openjdk/jre 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
>> 
>> ==============================
>> 
>> httpd.conf file -- >
>> 
>> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so 
>> JkWorkersFile   /etc/libapache2-mod-jk/workers.properties JkShmFile
>> /var/log/apache2/mod_jk.shM JkLogFile
>> /var/log/apache2/mod_jk.log JkLogLevel      info JkLogStampFormat
>> "[%a %b %d %H:%M:%S %Y] "
>> 
>> JkMount /big41       ajp13_worker JkMount /big41/*
>> ajp13_worker JkMount /big50       ajp13_worker JkMount /big50/*
>> ajp13_worker
>> 
>> JkMount /*.jsp ajp13_worker JkMount /*/servlet/ ajp13_worker
>> 
>> ==============================
> 
> Did you declare these JkMounts in a VirtualHost? Did you define them
> at the top-level and then try to use them in a virtual host? If you do
> a JkWorkersFile and JkMount at the top-level, they won't work within
> virtual hosts. You have to either explicitly-add them to all virtual
> hosts, or use JkMountCopy in each virtual host that should inherit the
> configuration.
> 
> Maybe you added a new virtual host and forgot JkMountCopy? Or switched
> from non-virtualhost configuration to one with a "default" virtual
> host instead of none at all?
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> 
> iQIcBAEBCAAGBQJS/nPzAAoJEBzwKT+lPKRYK+IP/2beJ98jzAJNW10fHNHU8poR
> sVze1TZr53hVjSGiS76xV8eoPO164egmrv9DVDKqWmk/0sWYyjmutUTLCXUXIwOA
> kNw0g0LF6xHQhBL/Mle8IXlSokwlBOvkuu02ILf25N4CGAr9yap0uGNFb2RsWLvR
> AmZWseNU6ALmLgaiMStpxXMwnjR4OHIiaxrJUm1QFKlo7AIIWodql3lUibUzuK2y
> uIl4yxcd5JnQWozEaT6qh4y/8nk2EEvvJAxxfSvDZWtL1u0UTK1YsZ0SpOA1milL
> LjFoRzVMX1pGtrik2XsEAt2lkna7TWNMi5qCIlRqSrX27z/QJBqsCgByk4wtpecp
> BBo6scXHbi8ksyFud338GB5OIgWHE+nOXNGcUS24CvETcDlnKJhZ4PyeIH/RsyRM
> vX7u/Y2q5EytwczyK8Ai+mDMMTrygBLNm1TbU43wNG6R473YtIsbRiwAMxJLI2W8
> AyhHW95/KioUqQt8kUZgNRiQukGYNUqz4Lj4+fvuuHKW4TUQ8/zNnjW5agOFiEcB
> /G6dskV9Os4sFLq+SqUaYl725eXqcIGoowsH7cfW32J4sZv1eCcnzXgR+AgBVg+b
> zMioWdNAI2q/5g9XZ1/wjKtacae1wH7IQLyXKfdY0l+PEwf9hAsYQ3ZRIbKq8aGb
> Ax6Diqn/lFLWBe3xkTFP
> =rZAN
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: mod-jk stopped working

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jim,

On 2/12/14, 11:53 PM, Jim Borland wrote:
> Apache 2.2 and Tomcat 6 on Linux Ubuntu 10.10
> 
> My connector worked fine for several years and then suddenly
> stopped working!  Now I get a "requested URL was not found on this
> server" error instead.

This sounds like a missing JkMount in httpd or even a non-deployed
webapp in Tomcat. Can you tell which component it generating the page
(httpd versus Tomcat)?

 I've tried several things to fix this but no joy. Here is the
> current content of my two files:
> 
> ==============================
> 
> workers.properties file -->
> 
> workers.tomcat_home=/usr/share/tomcat6 
> workers.java_home=/usr/lib/jvm/java-6-openjdk/jre 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
> 
> ==============================
> 
> httpd.conf file -- >
> 
> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so 
> JkWorkersFile   /etc/libapache2-mod-jk/workers.properties JkShmFile
> /var/log/apache2/mod_jk.shM JkLogFile
> /var/log/apache2/mod_jk.log JkLogLevel      info JkLogStampFormat
> "[%a %b %d %H:%M:%S %Y] "
> 
> JkMount /big41       ajp13_worker JkMount /big41/*
> ajp13_worker JkMount /big50       ajp13_worker JkMount /big50/*
> ajp13_worker
> 
> JkMount /*.jsp ajp13_worker JkMount /*/servlet/ ajp13_worker
> 
> ==============================

Did you declare these JkMounts in a VirtualHost? Did you define them
at the top-level and then try to use them in a virtual host? If you do
a JkWorkersFile and JkMount at the top-level, they won't work within
virtual hosts. You have to either explicitly-add them to all virtual
hosts, or use JkMountCopy in each virtual host that should inherit the
configuration.

Maybe you added a new virtual host and forgot JkMountCopy? Or switched
from non-virtualhost configuration to one with a "default" virtual
host instead of none at all?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS/nPzAAoJEBzwKT+lPKRYK+IP/2beJ98jzAJNW10fHNHU8poR
sVze1TZr53hVjSGiS76xV8eoPO164egmrv9DVDKqWmk/0sWYyjmutUTLCXUXIwOA
kNw0g0LF6xHQhBL/Mle8IXlSokwlBOvkuu02ILf25N4CGAr9yap0uGNFb2RsWLvR
AmZWseNU6ALmLgaiMStpxXMwnjR4OHIiaxrJUm1QFKlo7AIIWodql3lUibUzuK2y
uIl4yxcd5JnQWozEaT6qh4y/8nk2EEvvJAxxfSvDZWtL1u0UTK1YsZ0SpOA1milL
LjFoRzVMX1pGtrik2XsEAt2lkna7TWNMi5qCIlRqSrX27z/QJBqsCgByk4wtpecp
BBo6scXHbi8ksyFud338GB5OIgWHE+nOXNGcUS24CvETcDlnKJhZ4PyeIH/RsyRM
vX7u/Y2q5EytwczyK8Ai+mDMMTrygBLNm1TbU43wNG6R473YtIsbRiwAMxJLI2W8
AyhHW95/KioUqQt8kUZgNRiQukGYNUqz4Lj4+fvuuHKW4TUQ8/zNnjW5agOFiEcB
/G6dskV9Os4sFLq+SqUaYl725eXqcIGoowsH7cfW32J4sZv1eCcnzXgR+AgBVg+b
zMioWdNAI2q/5g9XZ1/wjKtacae1wH7IQLyXKfdY0l+PEwf9hAsYQ3ZRIbKq8aGb
Ax6Diqn/lFLWBe3xkTFP
=rZAN
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org