[hibernate-dev] Problem with Infinispan 5.1.5 with Hibernate version 3.6.10.
Steve Ebersole
steve at hibernate.org
Fri Jul 27 18:59:29 EDT 2012
I agree with Sanne, unfortunately for you. Grails really needs to
upgrade to HIbernate4. Heck, Hibernate 5 will probably be out and
about before they do...
On Fri 27 Jul 2012 12:39:55 PM CDT, thomas fuller wrote:
> Hi Sanne,
>
> It's not so simple otherwise I would.
>
> I wrote a plugin for the Grails framework, to allow developers to use
> Infinispan in their Grails applications. The trouble is Grails ships
> with Hibernate version 3.6.10 and I have moved the plugin to version
> 5.1.0 of Infinispan. Now I could roll back to an earlier version of
> Infinispan such that the two frameworks play nicely with each other,
> wait for Grails to upgrade to version 4, or write the bridge myself (I
> may take this approach if it doesn't require a significant investment
> of my time).
>
> Tom
>
> On Fri, Jul 27, 2012 at 5:17 PM, Sanne Grinovero <sanne at hibernate.org
> <mailto:sanne at hibernate.org>> wrote:
>
> Hi Thomas,
> I would rather suggest to update Grails to Hibernate 4? I don't
> know what it takes so I might be totally wrong but at least you
> would be moving forward.
>
> Sanne
>
> On Jul 27, 2012 5:04 PM, "Steve Ebersole" <steve at hibernate.org
> <mailto:steve at hibernate.org>> wrote:
>
> And yet again...
>
> On Fri 27 Jul 2012 11:01:07 AM CDT, Steve Ebersole wrote:
> > No, we only maintain a "latest to latest" integration.
> Maintaining
> > every possible combo would be way too big of a challenge for
> a small
> > open source team.
> >
> > But, all the needed code does exist in Git. You'd want to
> start with
> > the hibernate-infinispan module from the 3.6 branch and
> selectively
> > apply patches from 4.0/4.1 branch to integrate Infinispan
> 5.1. This
> > might mean cherry-picking or just plain merging.
> >
> >
> > On Fri 27 Jul 2012 10:35:16 AM CDT, thomas fuller wrote:
> >> Hi Steven,
> >>
> >> Thanks for your reply.
> >>
> >> Re: "The Infinispan implementation of the Hibernate
> RegionFactory SPI
> >> is actually done in the org.hibernate:hibernate-infinispan
> module, not
> >> in Infinispan itself unless something drastic has changed
> there."
> >>
> >> I agree with this, I think my message was poorly worded
> perhaps.
> >>
> >> Let me ask this question:
> >>
> >> Is there a hibernate-infinispan module that will work with
> Infinispan
> >> 5+ (5.1.5 specifically) and Hibernate 3.6 (3.6.10,
> specifically)?
> >>
> >> If this exists, would you happen to know which version I
> should be
> >> using?
> >>
> >> Thanks,
> >>
> >> Tom
> >>
> >> On Fri, Jul 27, 2012 at 4:02 PM, Steve Ebersole
> >> <steven.ebersole at gmail.com
> <mailto:steven.ebersole at gmail.com>
> <mailto:steven.ebersole at gmail.com
> <mailto:steven.ebersole at gmail.com>>> wrote:
> >>
> >> The Infinispan implementation of the Hibernate
> RegionFactory SPI
> >> is actually done in the
> org.hibernate:hibernate-__infinispan
> >> module, not in Infinispan itself unless something
> drastic has
> >> changed there.
> >>
> >> You would seem to have something else wrong in your setup.
> >>
> >>
> >>
> >> On Fri 27 Jul 2012 05:05:05 AM CDT, thomas fuller wrote:
> >>
> >> Hi Folks,
> >>
> >> I am using Infinispan 5.1.5 on Grails 2.1.0, which
> ships with
> >> Hibernate
> >> 3.6.10.
> >>
> >> The problem I am having is that the exception below
> indicates
> >> that an
> >> attempt is being made to load
> >> org/hibernate/cache/spi/__RegionFactory, which
> >> is included in Hibernate 4.0.0, whereas Grails
> 2.1.0 ships
> >> with Hibernate
> >> version 3.6.10 which includes the class
> >> org.hibernate.cache.__RegionFactory.
> >>
> >> Is there a way to configure Infinispan such that it
> can work
> >> with Hibernate
> >> version 3.6.10?
> >>
> >> If the answer is "no", I suspect the reason would
> be that the
> >> custom
> >> InfinispanRegionFactory has not been written. Can
> you let me
> >> know if you
> >> are aware of anyone currently writing this, because
> if nobody
> >> is, I'll
> >> write it myself.
> >>
> >> Thanks for your help,
> >>
> >> Tom
> >>
> >>
> org.springframework.beans.__factory.BeanCreationException:
> >> Error creating
> >> bean with name 'transactionManager': Cannot resolve
> reference
> >> to bean
> >> 'sessionFactory' while setting bean property
> 'sessionFactory';
> >> nested
> >> exception is
> >>
> org.springframework.beans.__factory.BeanCreationException: Error
> >> creating bean with name 'sessionFactory':
> Invocation of init
> >> method failed;
> >> nested exception is java.lang.__NoClassDefFoundError:
> >> org/hibernate/cache/spi/__RegionFactory
> >> at
> >>
> >>
> java.util.concurrent.__FutureTask$Sync.innerRun(__FutureTask.java:303)
> >> at
> >>
> java.util.concurrent.__FutureTask.run(FutureTask.__java:138)
> >> at
> >>
> >>
> java.util.concurrent.__ThreadPoolExecutor$Worker.__runTask(ThreadPoolExecutor.__java:886)
> >>
> >> at
> >>
> >>
> java.util.concurrent.__ThreadPoolExecutor$Worker.run(__ThreadPoolExecutor.java:908)
> >>
> >> at java.lang.Thread.run(Thread.__java:662)
> >> _________________________________________________
> >> hibernate-dev mailing list
> >> hibernate-dev at lists.jboss.org
> <mailto:hibernate-dev at lists.jboss.org>
> >> <mailto:hibernate-dev at lists.jboss.org
> <mailto:hibernate-dev at lists.jboss.org>>
> >> https://lists.jboss.org/__mailman/listinfo/hibernate-dev
> >>
> <https://lists.jboss.org/mailman/listinfo/hibernate-dev>
> >>
> >>
>
> --
> steve at hibernate.org <mailto:steve at hibernate.org>
> http://hibernate.org
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> <mailto:hibernate-dev at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
>
--
steve at hibernate.org
http://hibernate.org
More information about the hibernate-dev
mailing list