RE: TC3.3 Auto Config

2001-09-20 Thread Larry Isaacs

Hi David,

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

<http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#ApacheConfig>

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.

Cheers,
Larry


> -Original Message-
> From: David Oxley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 20, 2001 11:17 AM
> To: [EMAIL PROTECTED]
> 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?
> 
> 
> StaffplannerController
> 
> 
> StaffPlannerControllerServlet
> 
> 
> 
> 
> 
> StaffplannerController
> 
> 
> /servlet/StaffPlannerControllerServlet
> 
> 
> 
> 2. Tomcat 3.3 is supposed to do this.
> 3. There is a bug.
> 
> Dave
> [EMAIL PROTECTED]
> 



TC3.3 Auto Config

2001-09-20 Thread David Oxley

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?


StaffplannerController


StaffPlannerControllerServlet





StaffplannerController


/servlet/StaffPlannerControllerServlet



2. Tomcat 3.3 is supposed to do this.
3. There is a bug.

Dave
[EMAIL PROTECTED]