Forums Register Login

Gzip Filter in Web Application

+Pie Number of slices to send: Send
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>
+Pie Number of slices to send: Send
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 ]
Could you hold this puppy for a sec? I need to adjust this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1048 times.
Similar Threads
Problem with *.do for Compression Filter using Struts
GZipFilter inside JSP and WSAD 5.1.1
Filter Configuration in Websphere Application Server 6.1
Same Url Pattern and Different Filters ?
Filters and GZip
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:16:30.