Hi,
I cannot get Filters to work with Tomcat 5.0.16.
Here are my filter definitions in web.xml:
filter
filter-nameUserFilter/filter-name
filter-classch.ctc.support.common.UserFilter/filter-class
/filter
filter
filter-nameAdminFilter/filter-name
filter
To: Tomcat Users List
Subject: cannot get Filters to work with Tomcat 5.0.16
Hi,
I cannot get Filters to work with Tomcat 5.0.16.
Here are my filter definitions in web.xml:
filter
filter-nameUserFilter/filter-name
filter-classch.ctc.support.common.UserFilter/filter-class
/filter
Shapira, Yoav wrote:
Howdy,
Your first filter-mapping is mapping to a servlet-name /*?? Either
put a defined servlet name there or map to url-pattern /*.
I'll try copy/paste this time. Here's the filter declaration:
filter
filter-nameUserFilter/filter-name
: Tuesday, January 06, 2004 10:52 AM
To: Tomcat Users List
Subject: Re: cannot get Filters to work with Tomcat 5.0.16
Shapira, Yoav wrote:
Howdy,
Your first filter-mapping is mapping to a servlet-name /*?? Either
put a defined servlet name there or map to url-pattern /*.
I'll try copy
Shapira, Yoav wrote:
Howdy,
Looks good. Did you try either one of the filters individually to see
if it works by itself? Do you have any other errors in your logs?
Anything else in web.xml?
I tried both filters individually. Same thing. If i delete the filter stuff,
everything works like a
:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 11:32 AM
To: Tomcat Users List
Subject: Re: cannot get Filters to work with Tomcat 5.0.16
Shapira, Yoav wrote:
Howdy,
Looks good. Did you try either one of the filters individually to
see
if it works by itself? Do you have any other errors in your
, 2004 5:32 PM
To: Tomcat Users List
Subject: Re: cannot get Filters to work with Tomcat 5.0.16
filter-mapping
filter-nameUserFilter/filter-name
url-pattern/*/url-pattern
servlet-name/
/filter-mapping
filter-mapping
filter-nameAdminFilter/filter-name
url-pattern
Shapira, Yoav wrote:
Howdy,
OK, now that's the 3rd different version of the filter elements in your
web.xml ;) You shouldn't have both servlet-name and url-pattern
children of filter-mapping, only one of them.
I tried to add the filters with the Struts Studio Web Deployment Editor just as
To be sure your web.xml is correct, turn xml validation on. In
server.xml, replace:
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
by
Host name=localhost debug=0 appBase=webapps
unpackWARs=true
At 11:36 am -0500 2004/01/06, Shapira, Yoav wrote:
Howdy,
OK, now that's the 3rd different version of the filter elements in your
web.xml ;) You shouldn't have both servlet-name and url-pattern
children of filter-mapping, only one of them.
that's much better said then the original error message:
10 matches
Mail list logo