This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EhCache and the fly likes error while loading EhCache configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Caching » EhCache
Reply Bookmark "error while loading EhCache configuration " Watch "error while loading EhCache configuration " New topic
Author

error while loading EhCache configuration

pravin karne
Ranch Hand

Joined: Jul 26, 2007
Posts: 31
hi,
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
net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.init(MulticastKeepaliveHeartbeatReceiver.java:81)
net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:89)
net.sf.ehcache.CacheManager.init(CacheManager.java:221)

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

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

Joined: Jul 20, 2005
Posts: 8142
    
  52

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: error while loading EhCache configuration
 
Similar Threads
Hibernate cache issues
Dynamically change Ehcache configuration through hibernate and Spring
getting errors I can't explain...anyone can help out ?
Problem with ehcache
EhCache Sample Code