-->
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.  [ 11 posts ] 
Author Message
 Post subject: bug of hibernate3---when use it in jboss portal 2.21RC2
PostPosted: Wed Mar 01, 2006 9:10 am 
Newbie

Joined: Mon Feb 27, 2006 11:24 am
Posts: 8
more detail please see:
http://www.jboss.com/index.html?module= ... ic&t=78121

I post the topic in jboss portal user forum.
but nobody give an answer.

Now,After I deploy the .ear to jboss(which runing a jboss portal 2.21RC2),The exception will be thrown.
I have to restart the server.

About this problem,I think,mostly it's a hibernate 3 bug.
So I turn to here for help.

Thanks in advance.


Last edited by -=Kobye=- on Thu Mar 02, 2006 9:24 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 02, 2006 9:43 am 
Newbie

Joined: Mon Feb 27, 2006 11:24 am
Posts: 8
any one help?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 02, 2006 2:42 pm 
Regular
Regular

Joined: Wed Feb 08, 2006 3:59 pm
Posts: 75
Your link is truncated, could you edit it ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 02, 2006 9:23 pm 
Newbie

Joined: Mon Feb 27, 2006 11:24 am
Posts: 8
http://www.jboss.com/index.html?module= ... ic&t=78121

the url。

Sorry 。


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 02, 2006 9:25 pm 
Newbie

Joined: Mon Feb 27, 2006 11:24 am
Posts: 8
thanks for your reply。


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 02, 2006 9:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
I'd try a different cache provider. EhCache is a static cache. This can cause issues in a shared environment.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 2:27 am 
Newbie

Joined: Mon Feb 27, 2006 11:24 am
Posts: 8
is Jboss tree cache situable?

maybe it is more reliable


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 3:00 am 
Regular
Regular

Joined: Wed Feb 08, 2006 3:59 pm
Posts: 75
As steve stated, EHCache is static so if two caches (from differents applications usually) have the same name, the second cache will not start.

I've already experienced this problem using Hibernate inside JBoss, in my case it was because I deployed twice the same app.
Maybe you can solve your problem by creating your own cache region names so they do not overlap with the regions used by Jboss Portal.

Jboss tree cache would be a solution to but if you don't need clustering or transactionnal cache, it's a bit overengineered


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 3:06 am 
Newbie

Joined: Mon Feb 27, 2006 11:24 am
Posts: 8
you mean,I give different name of the Cache Name when using ehcache?
That will be the solution?

thanks
.

I will try it after work.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 5:56 am 
Regular
Regular

Joined: Wed Feb 08, 2006 3:59 pm
Posts: 75
I think the issue is about two Session Factories using trying to use a cache with the same region name (the query cache). So Query.setCacheRegion() would solve the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 12:25 pm 
Newbie

Joined: Mon Feb 27, 2006 11:24 am
Posts: 8
Thanks for your help.

I solve this problem by using Oscache instead of ehcache.

<!-- Second-level caching -->
<attribute name="SecondLevelCacheEnabled">true</attribute>
<attribute name="CacheProviderClass">org.hibernate.cache.OSCacheProvider</attribute>
<attribute name="QueryCacheEnabled">true</attribute>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.