File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem about Filter." Watch "Problem about Filter." New topic
Author

Problem about Filter.

Codec Guy
Greenhorn

Joined: Aug 02, 2004
Posts: 2
Hi,
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 java.io.ByteArrayInputStream@e0cc23
At Line 108 /web-app/servlet-mapping/
Starting service Tomcat-Apache
Apache Tomcat/4.0.6

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

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.
 
Consider Paul's rocket mass heater.
 
subject: Problem about Filter.
 
Similar Threads
== Filter Problem ==
Starting Tomcat Error
Tomcat -web.xml parseing error
Tomcat newbie
AXParseException: