You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Klemens Muthmann <kl...@tu-dresden.de> on 2010/04/23 17:21:00 UTC
Mod_jk 1.2.26 + tomcat 6.0.26 + apache 2.2.12 not working on ubuntu
'karmic'
Hi
I hope this is the correct mailing list for this question. I have a
problem setting up the configuration as described in the subject of this
mail. I did the following:
- Installed apache2 from the ubuntu repository (synaptic states the
version as 2.2.12-1ubuntu2.2)
- Installed mod_jk from the ubuntu repository (synaptic states the
version as 1:1.2.26-2.1)
- Installed tomcat 2.0.26 manually (just unzipped the package from the
download area to /opt)
Individually apache and tomcat run fine and both make several web
applications (apache: mantis, myphpadmin and wordpress; tomcat: hudson
and nexus) available. However now I need to make the tomcat applications
available over port 80 so I tried to configure mod_jk but it does not
work. I already did this successfully several years ago under Windows
but with these Ubuntu packages I am already trying the whole day without
any real progress.
Currently the configuration looks like:
- There is a symbolic link to jk.load file in /etc/apache2/mods-enabled
with content:
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
- httpd.conf is loaded in apache2.conf (after jk.load) via: "Include
/etc/apache2/httpd.conf" and has the following content:
JkWorkersFile /etc/libapache2-mod-jk/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel debug
JkMount /nexus/* ajp13_worker
- workers.properties is in /etc/libapache2-mod-jk
workers.tomcat_home=/opt/tomcat26
workers.java_home=/usr/lib/jvm/java-6-openjdk
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
I checked the connector port in tomcats server.xml. It is the correct
one (8009) for ajp13. But I get no access to the nexus application on
port 80 (also tried several different URL patterns with JkMount). So I
turned on debugging output for the mod_jk.log. There is much output, but
I think the relevant error messages are:
[Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug]
jk_translate::mod_jk.c (3038): missing uri map for 127.0.1.1:/nexus/
[Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug]
jk_map_to_storage::mod_jk.c (3195): missing uri map for 127.0.1.1:/nexus/
There I am at the end of my wits. I have absolutely no idea what these
messages mean and Google produces no helpful tipps either. Does anyone
on this list have any ideas?
Regards
Klemens
Re: Mod_jk 1.2.26 + tomcat 6.0.26 + apache 2.2.12 not working on
ubuntu 'karmic'
Posted by Klemens Muthmann <kl...@tu-dresden.de>.
Hi,
"I'm a researcher not an administrator." ;) Thanks for the hint with the
virtual hosts, chris. I never did anything with this technique (didn't
even know apache is capable of such things) but now it works.
Regards
Klemens
Christopher Schultz schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Klemens,
>
> On 4/23/2010 11:21 AM, Klemens Muthmann wrote:
>
>> However now I need to make the tomcat applications
>> available over port 80 so I tried to configure mod_jk but it does not
>> work.
>>
>
> [...]
>
>
>> Currently the configuration looks like:
>> - There is a symbolic link to jk.load file in /etc/apache2/mods-enabled
>> with content:
>> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
>>
>
> Does that file exist? Probably, because you have errors coming from
> mod_jk below...
>
>
>> - httpd.conf is loaded in apache2.conf (after jk.load) via: "Include
>> /etc/apache2/httpd.conf" and has the following content:
>> JkWorkersFile /etc/libapache2-mod-jk/workers.properties
>> JkLogFile /var/log/apache2/mod_jk.log
>> JkLogLevel debug
>> JkMount /nexus/* ajp13_worker
>>
>
> Where do the above lines fall in terms of VirtualHosts? Most Debian-like
> packages have a main VirtualHost defined somewhere like
> /etc/apache2/sites-enabled.
>
> mod_jk allows separate mounts for each virtual host, including the
> top-level one, and they don't inherit from each other by default.
>
> Try moving the JkMount like (specifically) from where it is now into
> your default VirtualHost definition.
>
> Here's the hint that you have no JkMounts defined for your virtual host:
>
>
>> [Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug]
>> jk_translate::mod_jk.c (3038): missing uri map for 127.0.1.1:/nexus/
>>
>
> It's the "missing uri map" that tells the story. Your workers.properties
> file looks fine (though the workers.tomcat_hom, workers.java_home, and
> ps properties are no longer relevant and should be removed, and you
> aren't actually using that loadbalancer so unless you're just testing in
> non-lb mode, remove it).
>
> Hope that helps,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkvV02kACgkQ9CaO5/Lv0PDYGwCgj2mTQWirkmmUqCQwsP+ZJgUL
> FjAAnRvketJTpIebGHFR8k+h6tGglqyj
> =NBB0
> -----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 1.2.26 + tomcat 6.0.26 + apache 2.2.12 not working on
ubuntu 'karmic'
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Klemens,
On 4/23/2010 11:21 AM, Klemens Muthmann wrote:
> However now I need to make the tomcat applications
> available over port 80 so I tried to configure mod_jk but it does not
> work.
[...]
> Currently the configuration looks like:
> - There is a symbolic link to jk.load file in /etc/apache2/mods-enabled
> with content:
> LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
Does that file exist? Probably, because you have errors coming from
mod_jk below...
> - httpd.conf is loaded in apache2.conf (after jk.load) via: "Include
> /etc/apache2/httpd.conf" and has the following content:
> JkWorkersFile /etc/libapache2-mod-jk/workers.properties
> JkLogFile /var/log/apache2/mod_jk.log
> JkLogLevel debug
> JkMount /nexus/* ajp13_worker
Where do the above lines fall in terms of VirtualHosts? Most Debian-like
packages have a main VirtualHost defined somewhere like
/etc/apache2/sites-enabled.
mod_jk allows separate mounts for each virtual host, including the
top-level one, and they don't inherit from each other by default.
Try moving the JkMount like (specifically) from where it is now into
your default VirtualHost definition.
Here's the hint that you have no JkMounts defined for your virtual host:
> [Fri Apr 23 15:20:05.210 2010] [23365:3585353520] [debug]
> jk_translate::mod_jk.c (3038): missing uri map for 127.0.1.1:/nexus/
It's the "missing uri map" that tells the story. Your workers.properties
file looks fine (though the workers.tomcat_hom, workers.java_home, and
ps properties are no longer relevant and should be removed, and you
aren't actually using that loadbalancer so unless you're just testing in
non-lb mode, remove it).
Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvV02kACgkQ9CaO5/Lv0PDYGwCgj2mTQWirkmmUqCQwsP+ZJgUL
FjAAnRvketJTpIebGHFR8k+h6tGglqyj
=NBB0
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org