tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Scheuerer <tabalo...@hispeed.ch>
Subject Re: cannot get Filters to work with Tomcat 5.0.16
Date Tue, 06 Jan 2004 16:32:21 GMT
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message