This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 87371

Summary: Hibernate EhCacheProvider problem with glassfish
Product: serverplugins Reporter: rbuss <rbuss>
Component: Sun Appserver 9Assignee: Nitya Doraisamy <nityad>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description rbuss 2006-10-17 22:17:15 UTC
Environment: Enterprise Application on glassfish (v1 ur1 b14) using Hibernate (3.2) for Postgres 
I generated entity beans from database with session bean access and tried access with application 
client.
Everything worked fine. 
Afterwards i tried to access the entity beans via web application. i generated a persistence unit in web 
application with the same data source as created for ejb application. Then I was able to generate
'JSF Pages from Entity Classes' from the entity classes generated formerly in ejb project.
Fine so far. Verification kit did not find errors.
But when deploying the enterprise application glassfish logged the following error:

Attempt to restart an already started EhCacheProvider. Use sessionFactory.close()  between repeated 
calls to buildSessionFactory. Consider using net.sf.ehcache.hibernate.SingletonEhCacheProvider. Error 
from  ehcache was: Cannot parseConfiguration CacheManager. Attempt to create a new instance of 
CacheManager using the diskStorePath "/tmp" which is already used by an existing CacheManager. The 
source of the configuration was classpath.
Comment 1 Vince Kraemer 2006-11-03 04:47:49 UTC

*** This issue has been marked as a duplicate of 77232 ***