[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Terracotta for Spring and Hibernate  XML
Forum Index -> Terracotta for Spring
Author Message
mathd

neo

Joined: 12/12/2006 10:37:49
Messages: 2
Offline

We are trying to use terracota for spring with hibernate and we have some problem.

I had to add org.hibernate..* to the instrumented-classes tag so that hibernate is instrumented.

Code:
 <include>
   <class-expression>org.hibernate..*</class-expression>
 </include>
 


After that I had this error
Code:
 *******************************************************************************
 Attempt to share an instance of a non-portable class referenced by a portable class. This
 unshareable class has not been included for sharing in the configuration. Please add this
 class to the <includes> section of the configuration file. This class also has a super-class
 that must be in the DSO boot jar. Please add this class to the boot jar configuration and
 re-create the DSO boot jar.
 
 Referring class         : org.hibernate.engine.StatefulPersistenceContext
 Referring field         : org.hibernate.engine.StatefulPersistenceContext.proxiesByKey
 Thread                  : http-8443-Processor23
 JVM ID                  : VM(2)
 Non-included class      : org.apache.commons.collections.ReferenceMap
 Class to add to boot jar: java.util.AbstractMap
 *******************************************************************************
 


I know the root problem is that hibernate lazy load some class with cglib. The problem is that I need this lazy loading because the object graph that I need is pretty deep.

Mathieu Dupuis
mathd

neo

Joined: 12/12/2006 10:37:49
Messages: 2
Offline

By the way, I am using Hibernate 3.1.3 (or 3.2.1 GA) and Spring 2.0.1 on Tomcat 5.5.20
zeeiyer

consul

Joined: 05/24/2006 14:28:28
Messages: 493
Offline

Terracotta DSO currently does not have the transactionality features and support for certain classes that are needed to succesfully cluster Hibernate. While there is no formal prioritization, engineers are looking at it when they get some cycles.

With regards to the specific exception that you see, apologies the error message is a bit misleading, but Terracotta needs to add support for org.apache.commons.collections.ReferenceMap and java.util.AbstractMap.

We have a JIRA at https://jira.terracotta.org/jira/browse/CDV-31 around supporting Hibernate. Please vote for it so we can assess community interest.

Thanks

Sreeni Iyer, Terracotta.
Not a member yet - Click here to join the Terracotta Community
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

Terracotta 2.4 will support clustering Hibernate POJOs, as well as EHCache which can be used as a 2nd level cache.
[WWW]
 
Forum Index -> Terracotta for Spring
Go to:   
Powered by JForum 2.1.7 © JForum Team