Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: cannot get Filters to work with Tomcat 5.0.16

Patrick Scheuerer

2004-01-06

Replies:

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@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.