I'm trying to implement a Dynacache CacheProvider and having problems. Here is what I've done:
code:
Properties props = new Properties();
props.put("com.ibm.ws.cache.CacheConfig.cacheProviderName","com.myCacheProvider");
map = (DistributedObjectCache)DistributedObjectCacheFactory.getMap("mycache",props);
I'm getting the following when the application trying to access DynaCache:
[9/18/12 10:10:52:917 EDT] 00000050 ServerCache E DYNA1066E: Unable to initialize the cache provider "com.myCacheProvider". The Dynamic cache will be used to create the cache instance "default" instead of the configured cache provider.
[9/18/12 10:10:52:919 EDT] 00000050 ServerCache E ENGLISH ONLY MESSAGE: cacheProvider is null. Check for the cache provider libraries
[9/18/12 10:10:52:920 EDT] 00000050 ServerCache I DYNA1001I: WebSphere Dynamic Cache instance named default initialized successfully.
I'm using WAS 8.5.
Any ideas what is going on and how to debug this?
Guy,
I would turn on Dyna cache trace to see why this error occurs
Trace String: com.ibm.ws.cache.=all:com.ibm.ws.drs.=all
This should give us clues on what is happening and depending on what we see from the trace would provide us info on what to do next.
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With