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.  [ 2 posts ] 
Author Message
 Post subject: org.hibernate.cache.CacheException:
PostPosted: Wed Jun 10, 2009 10:07 am 
Newbie

Joined: Fri Jan 16, 2009 8:40 am
Posts: 7
Hi
i am getting this exception when i m using swarmcache with hibernate in WAS.Hibernate version 3.2.5ga.

org.hibernate.cache.CacheException: SwarmCache did not create a cache:

My hibernate.cfg.xml looks like this:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<session-factory >
<!-- Database connection settings -->
<property name="connection.datasource">jdbc/localdgs</property>

<!-- SQL dialect -->
<property name="dialect">
org.hibernate.dialect.DB2Dialect
</property>

<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>

<!-- Disable the second-level cache -->
<property name="hibernate.cache.use_second_level_cache">true</property>

<property name="hibernate.cache.use_query_cache">
false
</property>
<property name="hibernate.cache.provider_class">
org.hibernate.cache.SwarmCacheProvider
</property>


<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>



<mapping resource="properties/hibernate/dgsTables.hbm.xml" />




</session-factory>



</hibernate-configuration>

Please let me know what can be the reason for this.

Thanks in advance

Nisha


Top
 Profile  
 
 Post subject: Re: org.hibernate.cache.CacheException:
PostPosted: Fri Jun 12, 2009 4:24 am 
Newbie

Joined: Fri Jan 16, 2009 8:40 am
Posts: 7
i also get this exception:
[6/12/09 13:09:38:968 IST] 00000023 CacheFactory E net.sf.swarmcache.CacheFactory createCache Cache of type [financing.tools.docgen.beans.hibernate.AsfHostNickname] already exists.

financing.tools.docgen.beans.hibernate.AsfHostNickname is the class for which i am implementing read-only cache in my .hbm.xml file.


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.