• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

Ehcache as second-level-cache for hibernate (version 1.2.4, 1.5.0 and 1.6.0-beta4) does not work with JBoss Application Server 5.0.1.GA due to following error:

java.lang.IllegalArgumentException: Cache name cannot contain ‘/’ characters. at net.sf.ehcache.config.CacheConfiguration.setName(CacheConfiguration.java:164) at net.sf.ehcache.Cache.setName(Cache.java:1648) at net.sf.ehcache.CacheManager.addCache(CacheManager.java:643) at net.sf.ehcache.hibernate.EhCacheProvider.buildCache(EhCacheProvider.java:92) at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.buildEntityRegion(RegionFactoryCacheProviderBridge.java:96) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:255) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132) at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301) ... Sourceforge Ticket ID: 2768062 - Opened By: rflicker - 16 Apr 2009 09:05 UTC

Comments

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira