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.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Patrick Scheuerer [mailto:[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 logs? >> Anything else in web.xml? > >I tried both filters individually. Same thing. If i delete the filter >stuff, >everything works like a charm. as soon as I put it back in the exception is >thrown again. It's one of those "metaphysical" problems that drive you up >the >walls :-( grrrrrr.... > >Just to make sure there's no other problem I'm inluding my complete web.xml >file: > ><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application >2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> ><web-app> > <filter> > <filter-name>UserFilter</filter-name> > <filter-class>ch.ctc.support.common.UserFilter</filter-class> > </filter> > <filter> > <filter-name>AdminFilter</filter-name> > <filter-class>ch.ctc.support.common.AdminFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>UserFilter</filter-name> > <url-pattern>/*</url-pattern> > <servlet-name/> > </filter-mapping> > <filter-mapping> > <filter-name>AdminFilter</filter-name> > <url-pattern>/admin/*</url-pattern> > <servlet-name/> > </filter-mapping> > <servlet> > <servlet-name>action</servlet-name> > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> > <init-param> > <param-name>config</param-name> > <param-value>/WEB-INF/struts-config.xml</param-value> > </init-param> > <init-param> > <param-name>debug</param-name> > <param-value>2</param-value> > </init-param> > <init-param> > <param-name>detail</param-name> > <param-value>2</param-value> > </init-param> > <init-param> > <param-name>dataDir</param-name> > <param-value>/data</param-value> > </init-param> > <load-on-startup>2</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>action</servlet-name> > <url-pattern>/execute/*</url-pattern> > </servlet-mapping> > <welcome-file-list> > <welcome-file>support.jsp</welcome-file> > </welcome-file-list> > <taglib> > <taglib-uri>/tags/struts-bean</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/tags/struts-html</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/tags/struts-logic</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/tags/struts-nested</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-nested.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/tags/struts-template</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-template.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/tags/struts-tiles</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/tags/struts-bean-el</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-bean-el.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/tags/struts-html-el</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-html-el.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/tags/struts-logic-el</taglib-uri> > <taglib-location>/WEB-INF/tlds/struts-logic-el.tld</taglib-location> > </taglib> > <taglib> > <taglib-uri>/jstl/c</taglib-uri> > <taglib-location>/WEB-INF/tlds/c.tld</taglib-location> > </taglib> ></web-app> > >Any further ideas anybody? > >Thanks! >Patrick > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
