xsen
xsen

Reputation: 141

Why isn't there the "net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter" class in ehcache2.6 package?

I want to try the page caching. But I coundn't find the net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter class, so I get a error that is class not found

What should I do?

<filter>
  <filter-name>SimplePageCachingFilter</filter-name>
  <filter-class>net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter
  </filter-class>
</filter>

Upvotes: 2

Views: 1411

Answers (1)

jeha
jeha

Reputation: 10730

SimplePageCachingFilter was moved out of the core Ehcache jars already some time ago (IIRC) and it's now part of ehcache-web, add a dependency to it e.g. via maven:

<dependency>
    <groupId>net.sf.ehcache</groupId>
    <artifactId>ehcache-web</artifactId>
    <version>2.0.4</version>
</dependency>

Upvotes: 5

Related Questions