Tomcat 5.0 web.xml filter mapping <url-pattern>/content/*.jsp
From: P.Hill (goodhill_at_xmission.com)
Date: 02/28/04
- Previous message: Nuno Belo: "Re: nee help..."
- Next in thread: P.Hill: "Re: Tomcat 5.0 web.xml filter mapping <url-pattern>/content/*.jsp"
- Reply: P.Hill: "Re: Tomcat 5.0 web.xml filter mapping <url-pattern>/content/*.jsp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Feb 2004 17:13:54 -0700
I am having problem using filter mapping in in Tomcat 5.0 on windows
I tried the following in my web.xml.
...
<filter-mapping>
<filter-name>foo.bar.MyFilter</filter-name>
<url-pattern>/content/*.jsp</url-pattern>
</filter-mapping>
...
When I start Tomcat it tells me:
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> /content/*.jsp in
filter mapping
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
...
It doesn't do it in a friends Tomcat 4.1 on Linux
Is this some kind of change in behavior from Tomcat 4.0 to 5.0?
(Tomcat 5.0 is Servlet API 2.4 and JSP 2.0)
The idea is that I want it to run my this filter before all JSP pages, but
not with all .jpg, .gif requests that come in, even if they are within
the some directory structure.
Seems simple enough in the example from a friends Tomcat 4.0
-Paul
- Previous message: Nuno Belo: "Re: nee help..."
- Next in thread: P.Hill: "Re: Tomcat 5.0 web.xml filter mapping <url-pattern>/content/*.jsp"
- Reply: P.Hill: "Re: Tomcat 5.0 web.xml filter mapping <url-pattern>/content/*.jsp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|