Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes Gzip Filter in Web Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Gzip Filter in Web Application" Watch "Gzip Filter in Web Application" New topic

Gzip Filter in Web Application

Mohammad Ali

Joined: Jan 03, 2006
Posts: 11
Please guide me where to put my Gzip filter in my web directory structure.
I am listing my web.xml entry for the filter. Currently my filter is sitting in a filter package. when i run the app it gives an error saying
FAIL - Application at context path /CofeeAdvice could not be started

please guide me what to do, if i remove my xml entry for the filter then my app runs otherwise it gives above error....Thanks

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

I think that your GzipFilter.class should be under "WEB-INF/classes/com/example/filter/"

Note that /*.jsp is not a valid url mapping
[ January 04, 2006: Message edited by: Satou kurinosuke ]

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Gzip Filter in Web Application
It's not a secret anymore!