File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Problem about Filter. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem about Filter." Watch "Problem about Filter." New topic

Problem about Filter.

Codec Guy

Joined: Aug 02, 2004
Posts: 2
In my application I need to use 2/3 Fileters.
I have written it and deployed on Tomcat/4.0.6, as well.
Also made neccesarry entries in deployment descriptor.
But displys following error in tomcat log.

Starting service Tomcat-Standalone
Apache Tomcat/4.0.6
PARSE error at line 12 column 13
org.xml.sax.SAXParseException: Element type "filter" must be declared.
ERROR reading
At Line 108 /web-app/servlet-mapping/
Starting service Tomcat-Apache
Apache Tomcat/4.0.6

Expecting help to solve the problem.
Thanks & Regards,
leon fan

Joined: Aug 02, 2004
Posts: 19
You must make some mistake in your Application Deployment Descriptor:

The Servlet Specification includes a Document Type Descriptor (DTD) for the web application deployment descriptor, and Tomcat 4 enforces the rules defined here when processing your application's /WEB-INF/web.xml file. In particular, you must enter your descriptor elements (such as <filter>, <servlet>, and <servlet-mapping> in the order defined by the DTD (see Section 13.3).

double check it.
I agree. Here's the link:
subject: Problem about Filter.
jQuery in Action, 3rd edition