Clustering/Session Replication in docker swarm

2020-05-20 Thread Praveen Kumar K S
Hello,

I'm not sure if this is the right forum to ask this question. Since this is
a bigger community, I hope someone might have faced this issue and hope I
will get some help.

I'm seeing many posts achieving Tomcat session replication in docker swarm
using traefik. But I just don't want to add another component. I use httpd
as frontend for tomcat. Tomcat will be deployed as a service with 4
replicas and will be scaled when required. httpd is running as docker
service and both are in same network. My question is, is there any way to
achieve Tomcat session replication in docker swarm in this case ?


Issue with Host Header Mismatch

2020-04-07 Thread Rajah Yoghindra K S
Hello everyone,

   Tomcat Version: 9.0.26
   OS: Windows and Linux

We recently upgraded from Tomcat 8.5.35 to 9.0.26 and in 9.0.26 there is change 
in default value of "allowHostHeaderMismatch" flag which is causing few issues 
for us.
   8.5.35  - Default value of allowHostHeaderMismatch is true. So 
it ALLOWS requests where the host headers don't match .
   9.0.26 -  Default value of allowHostHeaderMismatch is false. So 
it BLOCKS requests where the host headers don't match .

Our POST request header looks like this:
POST https://linux-7f67.blr.abc.com:443/testUrl/ HTTP/1.1
Host: linux-7f67.blr.abc.com
User-Agent: gSOAP/2.8
Content-Type: text/xml; charset=utf-8
Content-Length: 1740
Connection: close

The content on the "Host" field i.e. "Host: linux-7f67.blr.abc.com"  is 
generated by gSOAP library and it ignores adding the port as it to talking to a 
default port.
The uri on the "POST" line i.e. "https://linux-7f67.blr.abc.com:443/testUrl/ " 
is generated by another tool and it seems to be explicit about the port even 
though it is using the default port.
There is some confusion in general on the internet about including Port in URL 
for default ports. Some say it is ok to include and some say it is redundant 
when using default port.

The check in tomcat at 
https://github.com/apache/tomcat/blob/ca66cfd3d6fae198fbcf76be09b3e8f3f8232c0a/java/org/apache/coyote/http11/Http11Processor.java#L686
  compares "linux-7f67.blr.abc.com" in Host to "linux-7f67.blr.abc.com:443" in 
the POST url and tomcat returns a 400 Badrequest because of the extra :443 in 
the URL.

[cid:image003.jpg@01D60CDF.A04BF0A0]

What is your take on this ?  Should the code in tomcat be checking just the 
fqdn without the port ?
Also would it be possible to include a fix so that it skips the default port 
(if present) and then compare? Non default ports to be still retained. Only 
default ports to be skipped.

Regards
Rajah Yoghindra




Tomcat connectors and NTFS permission

2013-08-22 Thread Asha K S
HI,

Tomcat connectors don't seem to honor the NTFS permissions set for the files. 
Is there a way to achieve this ?


Thanks,
Asha


Bug 47678 - Unable to allocate shared memory when using isapi_redirect.dll as an extension and filter

2013-05-27 Thread Asha K S
Hi,
We are facing the same issue as mentioned in bug  47678. Is anyone else facing 
the same issue ? Please let me know if there are any plans of fixing this issue.


Thanks,
Asha


403.18 : The Specific Request Cannot Be Executed from Current Application Pool.

2013-05-27 Thread Asha K S

Hi,

When we run an IIS application in a different Application Pool rather than the 
site's default Application Pool , we are getting 
403.18 : The Specific Request Cannot Be Executed from Current Application 
Pool. 

Please let me know if this a bug or if  there is any workaround to this issue.

Thanks,
Asha

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



RE: tomcat http connector

2011-11-23 Thread Asha K S
Hi,

Thank you all for helping me in this regard. Can you please point me to 
documentation which helps me configure https between Apache and Tomcat.
Also in AJPv13 extensions proposal 
(http://tomcat.apache.org/connectors-doc/ajp/ajpv13ext.html) one add on 
suggests Basic authorisation system, where a shared secret key is present in 
web server and servlet engine do we know if this is still under consideration.

Thanks,
Asha

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Wednesday, November 23, 2011 3:19 AM
To: Tomcat Users List
Subject: Re: tomcat http connector

Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Asha,
 
 On 11/22/11 2:15 AM, Asha K S wrote:
 Is there any performance comparison document available already
 between http and AJP
 
 It should be easy to test in your own environment.
 
 If you are using AJP through another web server, the overhead of the
 server itself is obviously non-zero.
 
 If you're asking about connecting httpd and Tomcat via HTTP or AJP,
 then you'll have to do your own testing. I'm not sure there are any
 current performance comparisons out there.
 
 If you are using HTTPS in to Tomcat (that is, terminating SSL at
 httpd, then using HTTPS between httpd and Tomcat) then you definitely
 want to use the APR (aka native) connector as it's crypto
 implementation is much faster than the Java one.
 

Addendum : but if you do the above, and you are looking for performance, then 
you should 
at least think of what it means :

browser (1) -- HTTPS A -- (2) Apache (3) -- HTTPS B -- (4) Tomcat

(1) encryption (by the browser)
(2) decryption (by Apache)
(3) encryption (by Apache)
(4) decryption (by Tomcat)

encryption/decryption is a CPU-intensive process, so you will want to do it 
only where it 
is necessary.  If the link between Apache and Tomcat is safe (in other words, 
they are 
both on the same host, or the link is a safe internal network), then you 
probably do not 
want to use HTTPS there.
Even if the link between Apache and Tomcat is unencrypted HTTP (or AJP), you 
can still 
pass information from Apache to Tomcat about the browser/Apache HTTPS 
connection, if you 
need to.

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



Directory contents listing of Aliases Directory

2011-11-23 Thread Asha K S
Hi,

Currently when I set Aliases attribute for Context ,Tomcat serves resources 
from Aliases directory but I am unable to get the directory listing for the 
Aliases Directory.Can you please let me know if anyone has tried this or if 
there is any other way to do it.

I have set my aliases=/mytest=C:\mytest and if I access 
http://localhost:8080/mytest/test.jsp but if i just give 
http://localhost:8080/mytest i am unable to get the directory listing for 
mytest directory.

Thanks,
Asha


RE: Directory contents listing of Aliases Directory

2011-11-23 Thread Asha K S
HI Markus,

Thanks a lot for the reply. But I already have listings set to true and still 
facing issues with directory listing of the directory set in Aliases. 

Thanks,
Asha

-Original Message-
From: Markus Schönhaber [mailto:tomcat-us...@list-post.mks-mail.de] 
Sent: Wednesday, November 23, 2011 5:53 PM
To: users@tomcat.apache.org
Subject: Re: Directory contents listing of Aliases Directory

23.11.2011 12:53, Asha K S:

 Currently when I set Aliases attribute for Context ,Tomcat serves resources 
 from Aliases directory but I am unable to get the directory listing for the 
 Aliases Directory.Can you please let me know if anyone has tried this or if 
 there is any other way to do it.
 
 I have set my aliases=/mytest=C:\mytest and if I access 
 http://localhost:8080/mytest/test.jsp but if i just give 
 http://localhost:8080/mytest i am unable to get the directory listing for 
 mytest directory.

http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html

-- 
Regards
  mks


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


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



tomcat http connector

2011-11-21 Thread Asha K S
Hi,

Is there any document which I can refer to which states if tomcat's built in 
http connector (Coyote) can be used for production ? And also a comparison 
between http connector and AJP one.

Thanks,
Asha


RE: tomcat http connector

2011-11-21 Thread Asha K S
HI Chuck,

Sorry I am newbie here :) .My question was mainly regarding which one is 
recommended for production .


Thanks,
Asha

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Tuesday, November 22, 2011 12:29 PM
To: Tomcat Users List
Subject: RE: tomcat http connector

 From: Asha K S [mailto:a...@adobe.com] 
 Subject: tomcat http connector

 Is there any document which I can refer to which states if tomcat's 
 built in http connector (Coyote) can be used for production ?

What an odd question.  Of course it can be used for production.

 And also a comparison between http connector and AJP one.

Read the Tomcat docs:

http://tomcat.apache.org/tomcat-7.0-doc/config/http.html
http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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


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



RE: tomcat http connector

2011-11-21 Thread Asha K S
Is there any performance comparison document available already between http and 
AJP

Thanks,
Asha

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Tuesday, November 22, 2011 12:40 PM
To: Tomcat Users List
Subject: RE: tomcat http connector

 From: Asha K S [mailto:a...@adobe.com] 
 Subject: RE: tomcat http connector

 My question was mainly regarding which one is recommended 
 for production .

Both, depending on what you need to do.  If you are using httpd for something 
useful (and just serving static content isn't one of those things), then most 
people connect Tomcat to it via mod_jk or mod_proxy_ajp.  If you have no 
specific need for httpd, then use Tomcat directly and avoid the complexity and 
performance impact.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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


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



RE: default document doesnot work with IIS

2011-05-04 Thread Asha K S

In the connector logs if I give a request like - http://localhost/test/ it says 
HttpFilterProc::jk_isapi_plugin.c (2081): [/test] is not a servlet url

Can anybody please tell me if I am missing something.

Thanks,
Asha
-Original Message-
From: Asha K S [mailto:a...@adobe.com] 
Sent: Wednesday, May 04, 2011 11:24 AM
To: Tomcat Users List
Subject: RE: default document doesnot work with IIS

HI Jordan,

I am trying to deploy Adobe ColdFusion on Tomcat and configured Tomcat IIS 
connector, but I am not able to get the default document to work. Please point 
me to the links you had mentioned earlier, i will try those as well.


Thanks,
Asha

-Original Message-
From: Jordan Michaels [mailto:jor...@viviotech.net] 
Sent: Tuesday, May 03, 2011 9:08 PM
To: Tomcat Users List
Subject: Re: default document doesnot work with IIS

Asha,

What CFML server are you using and what method did you use to install it?

There is quite a bit of documentation on how to get the default document 
working with the open-source CFML engines and if I knew what you were using, I 
could point you in the right direction.

-Jordan


- Original Message -
From: Barry L Propes barry.l.pro...@citi.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, May 3, 2011 7:36:38 AM
Subject: RE: default document doesnot work with IIS

Oh, ok. Well then I'm not sure. Maybe in IIS you have to make the index.cfm the 
first choice in the default queue. As opposed to default.htm or index.htm.

Maybe you also have to set both index.cfm and index.cfml ?

-Original Message-
From: Asha K S [mailto:a...@adobe.com]
Sent: Tuesday, May 03, 2011 8:43 AM
To: Tomcat Users List
Subject: RE: default document doesnot work with IIS

HI,

Thanks a lot for the reply. Tried that too but doesn't seem to work :(

Thanks,
Asha

-Original Message-
From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
Sent: Tuesday, May 03, 2011 7:05 PM
To: Tomcat Users List
Subject: RE: default document doesnot work with IIS

Maybe you have to set the index.cfm in a welcome attribute in the web.xml file 
in the conf folder?



-Original Message-
From: Asha K S [mailto:a...@adobe.com]
Sent: Tuesday, May 03, 2011 6:01 AM
To: tomcat-u...@jakarta.apache.org
Subject: default document doesnot work with IIS

HI,

Though default document is set in IIS ,it doesn't seem to pick it up when IIS 
connector is configured with tomcat.
When we provide the path like http://localhost/test it doesn't automatically 
add index.cfm and it return 404,but if I access the full url like 
http://localhost/test/index.cfm it works fine.


Thanks,
Asha

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


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


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


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



default document doesnot work with IIS

2011-05-03 Thread Asha K S
HI,

Though default document is set in IIS ,it doesn't seem to pick it up when IIS 
connector is configured with tomcat.
When we provide the path like http://localhost/test it doesn't automatically 
add index.cfm and it return 404,but if I access the full url like 
http://localhost/test/index.cfm it works fine.


Thanks,
Asha


RE: default document doesnot work with IIS

2011-05-03 Thread Asha K S
HI,

Thanks a lot for the reply. Tried that too but doesn't seem to work :(

Thanks,
Asha

-Original Message-
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] 
Sent: Tuesday, May 03, 2011 7:05 PM
To: Tomcat Users List
Subject: RE: default document doesnot work with IIS

Maybe you have to set the index.cfm in a welcome attribute in the web.xml file 
in the conf folder?



-Original Message-
From: Asha K S [mailto:a...@adobe.com]
Sent: Tuesday, May 03, 2011 6:01 AM
To: tomcat-u...@jakarta.apache.org
Subject: default document doesnot work with IIS

HI,

Though default document is set in IIS ,it doesn't seem to pick it up when IIS 
connector is configured with tomcat.
When we provide the path like http://localhost/test it doesn't automatically 
add index.cfm and it return 404,but if I access the full url like 
http://localhost/test/index.cfm it works fine.


Thanks,
Asha

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


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



RE: default document doesnot work with IIS

2011-05-03 Thread Asha K S
HI Jordan,

I am trying to deploy Adobe ColdFusion on Tomcat and configured Tomcat IIS 
connector, but I am not able to get the default document to work. Please point 
me to the links you had mentioned earlier, i will try those as well.


Thanks,
Asha

-Original Message-
From: Jordan Michaels [mailto:jor...@viviotech.net] 
Sent: Tuesday, May 03, 2011 9:08 PM
To: Tomcat Users List
Subject: Re: default document doesnot work with IIS

Asha,

What CFML server are you using and what method did you use to install it?

There is quite a bit of documentation on how to get the default document 
working with the open-source CFML engines and if I knew what you were using, I 
could point you in the right direction.

-Jordan


- Original Message -
From: Barry L Propes barry.l.pro...@citi.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, May 3, 2011 7:36:38 AM
Subject: RE: default document doesnot work with IIS

Oh, ok. Well then I'm not sure. Maybe in IIS you have to make the index.cfm the 
first choice in the default queue. As opposed to default.htm or index.htm.

Maybe you also have to set both index.cfm and index.cfml ?

-Original Message-
From: Asha K S [mailto:a...@adobe.com]
Sent: Tuesday, May 03, 2011 8:43 AM
To: Tomcat Users List
Subject: RE: default document doesnot work with IIS

HI,

Thanks a lot for the reply. Tried that too but doesn't seem to work :(

Thanks,
Asha

-Original Message-
From: Propes, Barry L [mailto:barry.l.pro...@citi.com]
Sent: Tuesday, May 03, 2011 7:05 PM
To: Tomcat Users List
Subject: RE: default document doesnot work with IIS

Maybe you have to set the index.cfm in a welcome attribute in the web.xml file 
in the conf folder?



-Original Message-
From: Asha K S [mailto:a...@adobe.com]
Sent: Tuesday, May 03, 2011 6:01 AM
To: tomcat-u...@jakarta.apache.org
Subject: default document doesnot work with IIS

HI,

Though default document is set in IIS ,it doesn't seem to pick it up when IIS 
connector is configured with tomcat.
When we provide the path like http://localhost/test it doesn't automatically 
add index.cfm and it return 404,but if I access the full url like 
http://localhost/test/index.cfm it works fine.


Thanks,
Asha

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


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


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


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



Restarting Tomcat remotely

2011-05-02 Thread Asha K S
Hi,

Can anybody  please let me know if there is way to start/stop Tomcat 
remotely(Not start/stop of applications but server itself)

Thanks,
Asha


Applying Tomcat Patches

2011-04-25 Thread Asha K S
Hi,

Can someone please point me to the documentation which specifies the steps to 
follow to patch the Tomcat server with the latest security patches released.


Thanks,
Asha


RE: Applying Tomcat Patches

2011-04-25 Thread Asha K S
HI Chuck,

Thanks a lot for getting back on this. Can you please point me to the link 
where I can download Tomcat patches from ? Every time I searched for I only 
found .patch files like in http://people.apache.org/~rjung/patches/ or this 
link 
http://tomcat.apache.org/security-7.html#Fixed_in_Apache_Tomcat_7.0.12_(released_6_Apr_2011)
 which just specifies the changes in the fix. But I couldn't find any link from 
which I can download the .tar or .zip files.


Thanks,
Asha


-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Monday, April 25, 2011 6:24 PM
To: Tomcat Users List
Subject: RE: Applying Tomcat Patches

 From: Asha K S [mailto:a...@adobe.com] 
 Subject: Applying Tomcat Patches

 Can someone please point me to the documentation which specifies 
 the steps to follow to patch the Tomcat server with the latest 
 security patches released.

1) download the latest .tar.gz or .zip file for the major version of Tomcat 
you're using

2) install

You're done.

Note that fixes are only being made to Tomcat 5.5, 6.0, and 7.0; there are no 
fixes available for older versions.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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


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



RE: Applying Tomcat Patches

2011-04-25 Thread Asha K S
HI Chuck

Oops Gotchya ..

Thanks,
Asha

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Tuesday, April 26, 2011 6:49 AM
To: Tomcat Users List
Subject: RE: Applying Tomcat Patches

 From: Asha K S [mailto:a...@adobe.com] 
 Subject: RE: Applying Tomcat Patches

 Can you please point me to the link where I can download 
 Tomcat patches from ?
 
You missed the point: don't try to download patches, just get the tar or zip 
release files from the Tomcat download page; the patches are built into the 
released levels.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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


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



Re: Newbie mod_jk question - Getting HTTP 404 error for existing servlets-examples directory

2007-11-20 Thread K S
Thanks a lot Rainer! The problem as you guessed was with the Vhost.
After putting the JkMounts in the global server configuration, it
worked.

I started using the VHost (though now I have realised I don't need
them at all since I am not hosting more than one website on a single
server) because the automatically generated mod_jk.conf file had the
JkMounts within the VHost tags.

I have one clarification:

  (A) Engine name=Catalina defaultHost=bacis.vm.acis.intranet
 

 Throw this listener out. It's only used for automatic configuration
 generation, which is partially broken, and you've got a configuration
 already.

I would prefer to use the automatic configuration since it seems to
nicely include all the necessary JkMounts for each webapp in the
'webapps' directory. It saves me the extra step of having to modify
the mod_jk.conf file for each new webapp I add. But like I said, the
automatically generated mod_jk.conf file puts all the JkMounts in to
VirtualHost localhost VirtualHost set of tags. If I comment this
out and then restart apache it seems to work fine. Do you have any
suggestions on how this can be overcome or would it just be better to
avoid this auto generated file (since you say it is partially broken)
?

Thanks again!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie mod_jk question - Getting HTTP 404 error for existing servlets-examples directory

2007-11-19 Thread K S
Hi,

I am a newbie to both Apache and Tomcat.

I am using Apache 2.0.55, Tomcat 5.5.25, mod_jk 1.2.25 and Ubuntu (
2.6.17-10-server)

It seemed like I had the complete redirection working at one point, but
unfortunately after no apparent change (that I can recollect), things just
stopped working. I started troubleshooting by collecting detailed logs both
in Apache and Tomcat but the log information hasn't helped me much. So I was
wondering if anyone could suggest how I can go about finding what the issue
is.

My set up involved:

1. mod_jk.conf

LoadModule jk_module /YYY/lib/ApacheTomcat/mod_jk.so
JkWorkersFile /XXX/apache-tomcat-5.5.25/conf/jk/workers.properties
JkShmFile /XXX/apache-tomcat-5.5.25 /conf/jk/mod_jk.shm
JkLogFile /XXX/apache-tomcat-5.5.25/conf/jk/mod_jk.log
JkLogLevel trace
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V %T
VirtualHost my.machine.name
ServerName my.machine.name
JkMount /servlets-examples worker1
JkMount /servlets-examples/* worker1
/VirtualHost

2. workers.properties

workers.tomcat_home=/XXX/apache-tomcat-5.5.25
workers.java_home=/XXX/Java/jdk1.6.0_03
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=9009

3. apached.conf - Additions/Changes to the default file

(A) Include /XXX/apache-tomcat-5.5.25/conf/jk/mod_jk.conf

(B) LogFormat %v %V %h %l %u %t \%r\ %s %b status-%s port-%p filename-%f
reqMethod %m \%{Referer}i\ \%{User-Agent}i\ combined
LogFormat %v %V %h %l %u %t \%r\ %s %b common
LogFormat %v %V %{Referer}i - %U referer
LogFormat %v %V %{User-agent}i agent


4. Tomcat server.xml - Additions/Changes  to the default

(A) Engine name=Catalina defaultHost=bacis.vm.acis.intranet

Listener className=org.apache.jk.config.ApacheConfig
modJk=/XXX/lib/ApacheTomcat/mod_jk.so jkWorker=worker1 /

(B) Host name=my.machine.name appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

(C) !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=9080 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 --

(D) !-- Define an AJP 1.3 Connector on port 8009 --
Connector port=9009
enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

(E) Server port=9005 shutdown=SHUTDOWN

Here are the contents of mod_jk.log after I restart both Apache and Tomcat
and then make a request through my browser for
http://my.machine.name/servlets-examples. This URL used to (when things were
working) show me the standard Tomcat page with servlets examples such as
HelloWorld AND all the servlets worked.

[Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] open_jklog::mod_jk.c
(2652): log time stamp format is '[%a %b %d %H:%M:%S %Y] '
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_alloc::jk_uri_worker_map.c (182): enter
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_open::jk_uri_worker_map.c (407): enter
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug]
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 0
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_open::jk_uri_worker_map.c (479): exit
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_alloc::jk_uri_worker_map.c (198): exit
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] open_jklog::mod_jk.c
(2652): log time stamp format is '[%a %b %d %H:%M:%S %Y] '
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_alloc::jk_uri_worker_map.c (182): enter
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_open::jk_uri_worker_map.c (407): enter
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug]
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 0
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_open::jk_uri_worker_map.c (479): exit
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_alloc::jk_uri_worker_map.c (198): exit
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] open_jklog::mod_jk.c
(2652): log time stamp format is '[%a %b %d %H:%M:%S %Y] '
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_alloc::jk_uri_worker_map.c (182): enter
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_open::jk_uri_worker_map.c (407): enter
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug]
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_add::jk_uri_worker_map.c (315): enter
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug]
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule
'/servlets-examples=worker1' source 'JkMount' was added
[Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace]
uri_worker_map_add::jk_uri_worker_map.c (398): exit
[Mon Nov 19 16:15:12