tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <>
Subject RE: TC3.3 Auto Config
Date Thu, 20 Sep 2001 17:17:05 GMT
Hi David,

Refer to the following online document for info on the
ApacheConfig module:


The attributes you are looking for is "forwardAll" and
possibly "noRoot".  The default behavior is forwardAll=true
because that gives the best behavior with respect to
configuration specified in the web.xml.  If you set
forwardAll=false, you should get the auto/mod_jk.conf you are
looking for.

In Tomcat 3.3, with forwardAll=false, ApacheConfig will
try to include servlet mappings and welcome file info
in the mod_jk.conf.  Other web.xml configuration is
ignored.  It will try to continue to handle virtual
hosts correctly as well.

However, this mode of operation is not well documented
as to the problems you may encounter.  Tomcat 3.2.x didn't
document it either.  You should review the generated
mod_jk.conf to insure it is what you want.

The "noRoot" attribute controls whether Tomcat attempts
to override Apache's DocumentRoot with Tomcat's root
context.  Setting it "false" means this the mod_jk.conf
will try to direct "root" requests to Tomcat.  Some
manual changes to httpd.conf is required for this
to work completely.

The main risk you face with this approach is insuring
that there is not way to trick Apache into serving
a JSP as a static page.  Work has been done to try
to avoid this, but its hard to be sure all the holes
are plugged.


> -----Original Message-----
> From: David Oxley []
> Sent: Thursday, September 20, 2001 11:17 AM
> To:
> Subject: TC3.3 Auto Config
> Hi all,
> This isn't an urgent problem as I can manually change mod_jk.conf.
> I am trying to get TC3.3 to auto configure itself 
> (startup.bat -jkconf), but
> it configures mod_jk.conf for serving static content from 
> TC3.3. I read that
> it was supposed to pick this up from web.xml. So:
> 1. Either my web.xml is wrong. How is it wrong?
>     <servlet>
>         <servlet-name>
>             StaffplannerController
>         </servlet-name>
>         <servlet-class>
>             StaffPlannerControllerServlet
>         </servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>
>             StaffplannerController
>         </servlet-name>
>         <url-pattern>
>             /servlet/StaffPlannerControllerServlet
>         </url-pattern>
>     </servlet-mapping>
> 2. Tomcat 3.3 is supposed to do this.
> 3. There is a bug.
> Dave

View raw message