• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Caused by: org.hibernate.HibernateException: could not instantiate CacheProvider: ...please help me

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam working on a j2ee using struts, spring and hibernate using mysql .

Iam getting the following error on my console of ecplise :-


Following is my applicationContext.xml:-



Thanks in advance
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure you have supplyed the right cache provider? It seems as you have provided org.hibernate.hql.ast.ASTQueryTranslatorFactory Which by the look of the name doesn't have much to do with cache.

I dont know much about this, probably less than you, but id try replace that with something else. Like: org.hibernate.cache.EhCacheProvider

This is probably the solution to the other thread you alos posted.

Do tell how it goes.
 
Al Coson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im using this for my cache provider: "org.hibernate.cache.NoCacheProvider". Why? I have not clue. Does it work? It sure does.
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You cannot use org.hibernate.hql.ast.ASTQueryTranslatorFactory since it implements QueryTranslatorFactory.

For the CacheProvider you need to use any of the following classes
1) AbstractJndiBoundCacheProvider
2) EhCacheProvider
3)HashtableCacheProvider,
4) NoCacheProvider,
5) OptimisticTreeCacheProvider,
6) OSCacheProvider,
7) SwarmCacheProvider,
8) TreeCacheProvider

You can get more details on all of the above from the given links.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic