filter-class参数必须是应实现Filter接口的Java类。您能检查一下是否这样吗?
查看此示例以获取指导:
http://viralpatel.net/blogs/tutorial-java-servlet-filter-example-using-
eclipse-apache-tomcat/
从上面的链接:
<filter> <filter-name>LogFilter</filter-name> <filter-class> net.viralpatel.servlet.filters.LogFilter </filter-class> <init-param> <param-name>test-param</param-name> <param-value>This parameter is for testing.</param-value> </init-param></filter><filter-mapping> <filter-name>LogFilter</filter-name> <url-pattern>/*</url-pattern></filter-mapping>public class LogFilter implements Filter { public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {... } }


