Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Gzip Filter in Web Application

 
Mohammad Ali
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic