wood burning stoves 2.0*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Gzip Filter in Web Application" Watch "Gzip Filter in Web Application" New topic
Author

Gzip Filter in Web Application

Mohammad Ali
Greenhorn

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
Error:
-------
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

<filter>
<filter-name>GzipFilter</filter-name>
<filter-class>com.example.filter.GzipFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>GzipFilter</filter-name>
<url-pattern>/*.jsp</url-pattern>
</filter-mapping>
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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
 
Consider Paul's rocket mass heater.
 
subject: Gzip Filter in Web Application