• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

error while loading EhCache configuration

Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
Posts: 10445
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.
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic