-->
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: Cannot configure CacheManager: Access is denied
PostPosted: Wed Oct 05, 2005 5:28 am 
Newbie

Joined: Wed Oct 05, 2005 4:30 am
Posts: 1
When I try to run JUnitTest for a dao Class,
console writes, that it cannot configure CacheManager - and stops.
When simply running on Server, it loads
-failsafe.xml but works and display data from DB.
Does anyone know what to do? add some .jar,
change configuration, anything...?

Hibernate version:
3.1.0.alpha5
Mapping documents:

Code between sessionFactory.openSession() and session.close():
I use HibernateUtil to get currentSession
Full stack trace of any exception that occurs:
after succesful loading mapping files and connecting
to DB
...
Code:
Oct 5, 2005 11:17:42 AM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
Oct 5, 2005 11:17:42 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Oct 5, 2005 11:17:42 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Oct 5, 2005 11:17:42 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Oct 5, 2005 11:17:42 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Oct 5, 2005 11:17:42 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Oct 5, 2005 11:17:42 AM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Oct 5, 2005 11:17:42 AM net.sf.ehcache.config.Configurator configure
WARNING: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Program%20Files/eclipse/plugins/!hibernate-needed%20jars/new/ehcache-1.1.jar!/ehcache-failsafe.xml
org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Cannot configure CacheManager: Access is denied
   at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:127)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:169)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
   at com.accenture.bdc.solutiondb.test.HibernateUtil.<clinit>(HibernateUtil.java:20)
   at com.accenture.bdc.solutiondb.dao.SdbProjectHome.findById(SdbProjectHome.java:99)
   at com.accenture.bdc.solutiondb.daotest.SdbProjectHomeTest.testFindById(SdbProjectHomeTest.java:27)
   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 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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: net.sf.ehcache.CacheException: Cannot configure CacheManager: Access is denied
   at net.sf.ehcache.CacheManager.configure(CacheManager.java:170)
   at net.sf.ehcache.CacheManager.<init>(CacheManager.java:138)
   at net.sf.ehcache.CacheManager.create(CacheManager.java:193)
   at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
   ... 20 more


Name and version of the database you are using:
Oracle9

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


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.