Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

error while loading EhCache configuration

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Get me the mayor's office! I need to tell her about this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!