Hi All,
I am using Hibernate 2.1, with JBoss-4.0.2 and Liferay 3.6.1.
In our JBoss instance we are running one instance of Liferay and another application which also uses Hibernate.
If I deploy both applications and then login to Liferay and then other application I get the following error:
Code:
Error creating bean with name 'UserServiceSessionFactory' defined in class path resource [spring-user-service.xml]: Initialization of bean failed; nested exception is net.sf.hibernate.HibernateException: could not instantiate CacheProvider: com.liferay.util.dao.hibernate.OSCacheProvider
It seems that liferay is using their own cache provider (com.liferay.util.dao.hibernate.OSCacheProvider.) and that this is being picked up in the non liferay application.
The non liferay application is scoped and so I just assumed there would be no cross over between the two.
Does anyone know why Hibernate is trying to use the Liferay cache provider when I am not using Liferay?
It seems that the cacheProvider setting has JVM scope? If this is the case how are other people running two Hibernate applications with difference cache provider?
Any help is much appreciated.
Lea Thurman.