You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mehrotra, Anurag" <AM...@intellisales.com> on 2008/05/02 17:25:00 UTC
Tomcat 6.0.16 and web server 2.0.59
I have been trying to connect tomcat 6.0.16 (using JVM 1.5.0_15) on windows
32 bit platform to connect to apache web server httpd 2.0.59 with mod_jk.
I have defined the following entries in my worker.properties:
workers.tomcat_home
workers.java_home
ps
I loaded the mod_jk.so as follows: LoadModule jk_module
modules/mod_jk.so
I defined all the mod_jk related directives in my httpd.conf
# Where to find workers.properties
JkWorkersFile
# Where to put jk shared memory
JkShmFile
# Where to put jk logs
JkLogFile
# Set the jk log level [debug/error/info]
JkLogLevel debug
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# Send servlet for context /examples to worker named worker1
JkMount /* worker1
In httpd.conf I have a section for <virtualhost>
When the app server and web server are started a fresh "mod_jk.conf" is
generated under TOMCAT_HOME/conf/auto - this file has the listing for my
application and other tomcat apps as follows:
JkMount /app1 ajp13
JkMount /app1/* ajp13
JkMount /host-manager ajp13
JkMount /host-manager/* ajp13
JkMount /docs ajp13
JkMount /docs/* ajp13
JkMount /manager ajp13
JkMount /manager/* ajp13
But when I try to access my application as http://localhost/app1
<http://localhost/app1> all I get in mod_jk.log is
[Fri May 02 11:08:02 2008] [5588:944] [debug] mod_jk.c (2740): Initialized
mod_jk/1.2.26
[Fri May 02 11:24:01 2008] [5588:4972] [debug] mod_jk.c (3033): missing uri
map for localhost:/app1
[Fri May 02 11:24:01 2008] [5588:4972] [debug] mod_jk.c (3190): missing uri
map for localhost:/app1
I am unable to even access the tomcat manager application as
http://localhost/manager/html <http://localhost/manager/html>
Need some pointers or help here!
________________________________
Anurag 301-296-3838
The information contained in this message may be privileged and confidential
and protected from disclosure. If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering this
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify
us immediately by replying to the message and deleting it from your
computer.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6.0.16 and web server 2.0.59
Posted by Rainer Jung <ra...@kippdata.de>.
Hi Anurag,
Mehrotra, Anurag schrieb:
> I have been trying to connect tomcat 6.0.16 (using JVM 1.5.0_15) on windows
> 32 bit platform to connect to apache web server httpd 2.0.59 with mod_jk.
>
> I have defined the following entries in my worker.properties:
> workers.tomcat_home
> workers.java_home
> ps
Those three entries above are not used. You can savely delete them.
>
> I loaded the mod_jk.so as follows: LoadModule jk_module
> modules/mod_jk.so
>
>
> I defined all the mod_jk related directives in my httpd.conf
>
> # Where to find workers.properties
> JkWorkersFile
You need to add a value, namely the path to the worker.properties (the
name you used above) or workers.properties (plural, that's how it is
usually named).
> # Where to put jk shared memory
> JkShmFile
Delete or use a file argument
> # Where to put jk logs
> JkLogFile
Delete or use a file argument
> # Set the jk log level [debug/error/info]
> JkLogLevel debug
>
> # Select the timestamp log format
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
If you are not sure you want that, delete it.
> # Send servlet for context /examples to worker named worker1
> JkMount /* worker1
If you are working with virtual hosts in httpd, you need to put the
JkMount into the virtual host elements.
Furthermore you didn't define a worker named worker1 in your
worker.properties above, so using it will not work.
>
> In httpd.conf I have a section for <virtualhost>
which contains what?
> When the app server and web server are started a fresh "mod_jk.conf" is
> generated under TOMCAT_HOME/conf/auto - this file has the listing for my
> application and other tomcat apps as follows:
> JkMount /app1 ajp13
> JkMount /app1/* ajp13
>
> JkMount /host-manager ajp13
> JkMount /host-manager/* ajp13
>
> JkMount /docs ajp13
> JkMount /docs/* ajp13
>
> JkMount /manager ajp13
> JkMount /manager/* ajp13
This is an auto-generated configuration file example. If you add a jk
listener to your tomcat, it will spit out such an example config file
for mod_jk. Tomcat will not use it itself. The file is meant as a
starting point for the jk specific part of your httpd configuration.
> But when I try to access my application as http://localhost/app1
> <http://localhost/app1> all I get in mod_jk.log is
I would expect you get a lot more messages with debug log level.
> [Fri May 02 11:08:02 2008] [5588:944] [debug] mod_jk.c (2740): Initialized
> mod_jk/1.2.26
> [Fri May 02 11:24:01 2008] [5588:4972] [debug] mod_jk.c (3033): missing uri
> map for localhost:/app1
> [Fri May 02 11:24:01 2008] [5588:4972] [debug] mod_jk.c (3190): missing uri
> map for localhost:/app1
- Add the correct path and file name to JkWorkersFile
- Move JkMount into the virtual hosts
- Add a correct definition for worker1 to your worker.properties
> I am unable to even access the tomcat manager application as
> http://localhost/manager/html <http://localhost/manager/html>
- See above
>
> Need some pointers or help here!
HTH
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org