-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problems with the cache provider
PostPosted: Tue Dec 27, 2005 6:51 pm 
Newbie

Joined: Tue Dec 27, 2005 6:43 pm
Posts: 6
Hi, I'm using Hibernate3.0 with Oracle 10g, I'm running some JUnit tests from an Ant script. I also use AspectJ in order to open and close the transactions. Well the problem happens when I'm trying to run any of this test and the cacheProvider can no be instantiate:
Quote:
org.hibernate.HibernateException: could not instantiate CacheProvider: org.hibernate.cache.HashtableCacheProvider
at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:326)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:219)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at net.edesa.r166.common.HibernateUtil.getSessionFactory(HibernateUtil.java:171)
at net.edesa.r166.common.HibernateUtil.getJbpmSession(HibernateUtil.java:200)
at net.edesa.r166.common.HibernateUtil.beginTransaction(HibernateUtil.java:385)
at net.edesa.r166.service.AnexoService.saveOrUpdate_aroundBody3$advice(AnexoService.java:122)
at net.edesa.r166.service.AnexoService.saveOrUpdate(AnexoService.java)
at net.edesa.r166.test.persistent.AnexoServiceTest.testSaveOrUpdate(AnexoServiceTest.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at net.edesa.r166.test.TestCase.runTest(TestCase.java:26)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.HashtableCacheProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:323)
... 27 more


I think is a missconfiguration, or the jar is somewhere I don't know, anyway I check the paths and I'm sure tha jars are there. Can sombody help me


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.