1 Reply Latest reply on Jun 15, 2006 9:08 AM by Jay Hiremath

    Exception with ehcache while redeploying jbpm on jboss 4.0.4

    Bernd Ruecker Master

      If we redeploy jbpm on JBoss 4.0.4 we get an exception from ehcache:

      Caused by: org.hibernate.cache.CacheException: 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 "null" which is already used by an existing CacheManager. The source of the configuration was classpath.
      
      at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:133)
      


      I have found the problem described sometimes for JBoss 4.0.4 but no real solution. I think, that the Hibernate SessionFactory is not closed correctly from the org.jbpm.db.jmx.JbpmService while stopping the service.

      Or am I wrong?

      Any ideas?

      thanks in advance
      Bernd