4 Replies Latest reply on Jun 7, 2006 4:39 PM by sramakrishnaiah

    JBoss 4.0.4.GA Hibernate Exception

      Hi
      I am trying to upgrade jboss from 4.0.2 to 4.0.4.GA and I copied the ehcache 1.2 as per release notes but seems like ehcache is causing some issues. I get the following exception while starting the jboss server.

      10:09:57,437 WARN [ConfigurationFactory] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/
      installed/jboss-4.0.4.GA/server/gts/lib/ehcache-1.2.jar!/ehcache-failsafe.xml
      10:09:57,437 INFO [HibernateServiceMBean] Could not build SessionFactory using the MBean classpath - will try again using client classpath: Attempt t
      o 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 "C:\DOCUME~1\sramakri\LOCALS~1\Temp\" which is already used by an existing CacheManager. The source of the configuration was
      classpath.




      Caused by: org.hibernate.cache.CacheException: Attempt to restart an already started EhCacheProvider. Use sessionFactory.close() between repeated cal
      ls to buildSessionFactory. Consider using net.sf.ehcache.hibernate.SingletonEhCacheProvider. Error from ehcache was: Cannot parseConfiguration CacheM
      anager. Attempt to create a new instance of CacheManager using the diskStorePath "C:\DOCUME~1\sramakri\LOCALS~1\Temp\" which is already used by an exi
      sting CacheManager. The source of the configuration was classpath.
      at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:133)
      at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:180)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
      at org.hibernate.jmx.HibernateService.buildSessionFactory(HibernateService.java:64)
      at org.hibernate.jmx.SessionFactoryStub.getImpl(SessionFactoryStub.java:82)
      at org.hibernate.jmx.SessionFactoryStub.getCurrentSession(SessionFactoryStub.java:78)

      Any help or tips would be appreciated.

      Thanks
      Suresh