-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Scope of CacheProvider?
PostPosted: Tue Jan 24, 2006 3:57 pm 
Newbie

Joined: Thu Nov 11, 2004 12:09 pm
Posts: 2
Location: Derbyshire, UK
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.