-
1. Re: Infinispan on JBoss AS 5.1.0.GA
vblagojevic Jun 4, 2010 2:57 PM (in response to felixreuthlinger)Hi Felix,
Not 100% sure so I am going to leave it to Galder to provide a definete response to you. Until then, have a look at http://community.jboss.org/wiki/usinginfinispanasjpahibernatesecondlevelcacheprovider
And, just in case you are not aware of http://community.jboss.org/wiki/infinispan
All the best,
Vladimir
-
2. Re: Infinispan on JBoss AS 5.1.0.GA
felixreuthlinger Jun 4, 2010 6:13 PM (in response to vblagojevic)Hey Vladimir,
thanks for the hint, but yes of course I know about the article and about the wiki. I have been looking around there, but not even the FAQ gives information about the version dependecies and if there is any way to get infinispan running on the older jboss as.
As far as I could proove it myself, I was looking for the missing class and it can be found at the new hibernate library, but not at the older one. There are some hints at the wiki that could tell you, that you need the newer version. But I think it's not that straight as it could be
Best Regards,
Felix
-
3. Re: Infinispan on JBoss AS 5.1.0.GA
galder.zamarreno Jun 8, 2010 5:59 AM (in response to felixreuthlinger)HI Felix,
The reason you're encountering the ClassNotFoundException is simple, you're missing the corresponding hibernate-infinispan-*.jar containing the 2LC code that works with Infinispan. You can download it from https://repository.jboss.org/nexus/content/groups/developer/org/hibernate/hibernate-infinispan
Now, Infinispan 2LC is only available since Hibernate 3.5 and this version has so far only been integrated with AS 6. So, you're best bet to get it working is to use AS 6.
In theory, you should be able to get Hibernate 3.5 and Infinispan working in AS 5 by deploying them in an isolated ear or similar, making sure you include the newer JGroups jar as well. However, I know someone that had tried it and at least for JPA applications, there was a classloading issue with the way JPA interfaces were being loaded. If you're not using JPA and use instead Hibernate directly, it might work, but again, this is untested area.
I'll add a clearer message to the wiki wrt to this topic.
-
4. Re: Infinispan on JBoss AS 5.1.0.GA
felixreuthlinger Jun 8, 2010 6:28 AM (in response to galder.zamarreno)Hey Galder,
thanks for the response, that prooved my assumption
At least good to know it's not a local problem of my deployment. And I'd really like to try this with the JBoss AS 6, but some parts of the app stick with the old messaging core of the as 5, maybe I'll try that later when the as 6 is stable.
I also tried to deploy the newer hibernate version to the older as, but I had the same the class loading problems you mentioned. Would be great, if you could discribe or even post a link one the information where it is discribed who to get the deployment working. As I am heavily using JPA I won't try to get this done right now, maybe future versions of the 5.x work with some hibernate 3.5+.
All the best,
Felix
-
5. Re: Infinispan on JBoss AS 5.1.0.GA
galder.zamarreno Jun 11, 2010 6:39 AM (in response to felixreuthlinger)I added a clarification to http://community.jboss.org/docs/DOC-14105