File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EhCache and the fly likes error while loading EhCache configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Caching » EhCache
Bookmark "error while loading EhCache configuration " Watch "error while loading EhCache configuration " New topic

error while loading EhCache configuration

pravin karne
Ranch Hand

Joined: Jul 26, 2007
Posts: 31
i want to configure the ehcache.
but i m gettin error when i m loading catch:
code is like

InputStream fis=new FileInputStream(new File("C:\\Documents and Settings\\pravin_karne\\pravin_karne_view\\StartosHear\\src\\BILiveProCog\\pcs\\ehcache1.xml"))

CacheManager manager=new CacheManager(fis);
Cache cache=manager.getCache("sampleCache1"); //error is cache is null;

response on explore is like
java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/Executors

why this cache is null....i didnt get

thnx in advance
[ August 07, 2007: Message edited by: pravin karne ]
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/Executors

Looks like you dont have the required jar files in the classpath. Figure out which jar file contains the above class file and include that jar file in your application classpath.

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: error while loading EhCache configuration
jQuery in Action, 3rd edition