The following is my web.xml file. The interesting thing is that the
/protected/* mapping is not added to the mod_jk.conf-auto file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- This servlet will handle access to protected files. -->
<servlet>
<servlet-name>FileAccessServlet</servlet-name>
<servlet-class>com.securelens.slim.demos.extranet.FileAccessServlet</servlet-class>
<load-on-startup>0</load-on-startup>
<init-param>
<param-name>host</param-name>
<param-value>192.168.1.2</param-value>
</init-param>
<init-param>
<param-name>port</param-name>
<param-value>8051</param-value>
</init-param>
</servlet>
<!-- The FileAccessServlet will control access to all files
in the directory /protected -->
<servlet-mapping>
<servlet-name>FileAccessServlet</servlet-name>
<url-pattern>/protected/*</url-pattern>
</servlet-mapping>
</web-app>
>From: "Kevin Regan" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: deploying a WAR file
>Date: Sun, 03 Jun 2001 20:58:00 -0700
>
>
>By the way, I'm running Tomcat 3.2.2 with JDK 1.3.1 and Apache 1.3.19 an
>Red Hat Linux 7.1.
>
>--Kevin
>
>
>>From: "Kevin Regan" <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>CC: [EMAIL PROTECTED]
>>Subject: deploying a WAR file
>>Date: Sun, 03 Jun 2001 20:55:39 -0700
>>
>>
>>I've created my first WAR file and included it in the webapps directory of
>>the Tomcat server. I've also got Apache running with the mod_jk module.
>>When I start up Tomcat, it creates the mod_jk.conf-auto script for me
>>which is read into Apache.
>>
>>I can run my servlet by accessing:
>>
>>http://hostname/application/servlet/ServletName
>>
>>However, Tomcat does not seem to add an entry in the mod_jk.conf-auto
>>script for a <servlet-mapping> element that I have in my web.xml file.
>>Does Tomcat include <servlet-mapping> info into the mod_jk.conf-auto
>>script, or does it just always add the default:
>>
>>/servlet/* ajp12
>>*.jsp ajp12
>>
>>entries???
>>
>>Thanks for any information.
>>
>>--Kevin
>>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com