Artem24 / gwtgae2011

Automatically exported from code.google.com/p/gwtgae2011
0 stars 0 forks source link

Memcache Fails with an error CacheDao Creation Error : Could not find class: 'ri.cache.BasicCacheFactory' #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Run this code:

import net.sf.jsr107cache.Cache;
import net.sf.jsr107cache.CacheException;
import net.sf.jsr107cache.CacheManager;

Cache cache;
try {
cache = CacheManager.getInstance().getCacheFactory()
.createCache(Collections.emptyMap());
} 
catch (CacheException e) {
return "CacheDao Creation Error : " + e.getMessage();
}
return "Cache Works";   

2. Error Occurs
Could not find class: 'ri.cache.BasicCacheFactory' 

What is the expected output? What do you see instead?
Memcache should be created and available.

What version of the product are you using? On what operating system?
GAE 1.4.2

Please provide any additional information below.
Looks like the solution to this one is a missing dependency in the POM

        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-jsr107cache</artifactId>
            <version>${gae.version}</version>
        </dependency>

Original issue reported on code.google.com by drgenejones on 11 Mar 2011 at 1:14