[jboss-as7-dev] Second-level Cache in AS 7 Beta 3

Scott Marlow smarlow at redhat.com
Fri Apr 22 11:17:19 EDT 2011


On 04/22/2011 10:30 AM, Andrig Miller wrote:
>
>
> ----- Original Message -----
>> From: "Scott Marlow"<smarlow at redhat.com>
>> To: "Andrig Miller"<anmiller at redhat.com>
>> Cc: jboss-as7-dev at lists.jboss.org
>> Sent: Thursday, April 21, 2011 7:49:02 PM
>> Subject: Re: [jboss-as7-dev] Second-level Cache in AS 7 Beta 3
>> On 04/21/2011 05:46 PM, Andrig Miller wrote:
>>>
>>>
>>> ----- Original Message -----
>>>> From: "Scott Marlow"<smarlow at redhat.com>
>>>> To: "Andrig Miller"<anmiller at redhat.com>
>>>> Cc: jboss-as7-dev at lists.jboss.org
>>>> Sent: Thursday, April 21, 2011 3:40:03 PM
>>>> Subject: Re: [jboss-as7-dev] Second-level Cache in AS 7 Beta 3
>>>> On 04/21/2011 05:12 PM, Andrig Miller wrote:
>>>>>
>>>>>
>>>>> ----- Original Message -----
>>>>>> From: "Scott Marlow"<smarlow at redhat.com>
>>>>>> To: jboss-as7-dev at lists.jboss.org
>>>>>> Sent: Thursday, April 21, 2011 2:57:08 PM
>>>>>> Subject: Re: [jboss-as7-dev] Second-level Cache in AS 7 Beta 3
>>>>>> On 04/21/2011 04:31 PM, Andrig Miller wrote:
>>>>>>> I just tried deploying my application into AS 7 Beta 3 with the
>>>>>>> clustering, and the second-level cache enabled.
>>>>>>>
>>>>>>> Well, I received the following exception:
>>>>>>>
>>>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>>>> org.hibernate.cache.infinispan.JndiInfinispanRegionFactory from
>>>>>>> [Module "org.hibernate:main" from local module loader @1fff7a1e
>>>>>>> (roots: /root/jboss-7.0.0.Beta3/modules)]
>>>>>>> at
>>>>>>> org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:184)
>>>>>>> [:1.0.0.Beta17]
>>>>>>> at
>>>>>>> org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:357)
>>>>>>> [:1.0.0.Beta17]
>>>>>>> at
>>>>>>> org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:329)
>>>>>>> [:1.0.0.Beta17]
>>>>>>> at
>>>>>>> org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:306)
>>>>>>> [:1.0.0.Beta17]
>>>>>>> at
>>>>>>> org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:100)
>>>>>>> [:1.0.0.Beta17]
>>>>>>> at java.lang.Class.forName0(Native Method) [:1.6.0_20]
>>>>>>> at java.lang.Class.forName(Class.java:186) [:1.6.0_20]
>>>>>>> at
>>>>>>> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)
>>>>>>> at
>>>>>>> org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:409)
>>>>>>> ... 12 more
>>>>>>>
>>>>>>> It turns out the Hibernate module doesn't seem to include the
>>>>>>> classes for the second-level cache. I don't even see the old
>>>>>>> JBoss
>>>>>>> Cache stuff in those jars.
>>>>>>>
>>>>>>> Is there a reason why this is missing? This makes it impossible
>>>>>>> to
>>>>>>> actually test this functionality.
>>>>>>
>>>>>> Your ahead of us.
>>>>>>
>>>>>> I created JBAS-9378 for adding the Infinispan dependency to the
>>>>>> Hibernate module.
>>>>>
>>>>> But the Hibernate classes aren't even there in the Hibernate jars
>>>>> for the module. Will this change the build?
>>>>
>>>> Its easy to include the additional 2lc interface jars that we want.
>>>> The
>>>> question for me is about native Hibernate applications that want to
>>>> cluster (the 2lc) and what we do for them in AS7.
>>>
>>> In looking at the Hibernate distribution from SourceForge, the
>>> classes that are missing should be in the Hibernate core jar files,
>>> there are not in different jars, so I'm wondering what's going on
>>> with the build process. In fact the org/hibernate/cache directory is
>>> there, but its missing the packages for infinispan, jboss cache and
>>> jboss cache 2 (i.e. org/hibernate/cache/infinispan,
>>> org/hibernate/cache/jbc, and org/hibernate/cache/jbc2).
>>>
>>> Andy
>>
>> I pulled down a copy of hibernate-distribution-3.6.1.Final and the
>> Infinispan 2lc cache jars are in
>> hibernate-distribution-3.6.1.Final/infinispan-core-4.2.1.CR1.jar
>>
>> Looking for the similar maven artifact that matches up, i see
>> org.hibernate:hibernate-infinispan also has
>> org/hibernate/cache/infinispan but I need to do a proper integration
>> of
>> that into AS7.
>>
>> My quick attempt to bring in the Infinispan 2lc, leads to
>> http://pastie.org/1821155 (looks like a TCCL issue that we will have
>> to
>> deal with).
>>
>> Even if this worked, we are not ready to cluster the 2lc cache yet.
>>
>
> Okay.  Just as a side not the latest Hibernate release is now 3.6.3 (not including the 4.0.0.Alpha(n) of course).
>
> Once this gets in correctly, I would like to be notified.  If I watch the JIRA you opened would that be sufficient, or will this be a bigger scope than that single JIRA?

JBAS-9378 is now AS7-488, due to the recent separation of AS7 jiras.  I 
also retitled it to be more reflective of the specific underlying issue 
to be solved.

There are larger scope issues not covered by AS7-488.  Clustering the 
second level cache properly, is not covered and not yet in JIRA.

A related effort, is switching to Hibernate 4.0 (AS7-396), which will 
happen on a separate branch.  Steve and I, are hacking away against 
https://github.com/scottmarlow/jboss-as/tree/hibernate40_2 for this 
effort.  I'm thinking that our efforts to solve the classloader issues, 
behind the 2LC failure, will go into Hibernate 4.0.

So, there are definitely bigger scopes involved (in clustering and 
Hibernate integration).

Scott
>
> Andy
>
>>>
>>>>>
>>>>>>
>>>>>>>
>>>>>>> Andy
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> jboss-as7-dev mailing list
>>>>>>> jboss-as7-dev at lists.jboss.org
>>>>>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>>>>>
>>>>>> _______________________________________________
>>>>>> jboss-as7-dev mailing list
>>>>>> jboss-as7-dev at lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev




More information about the jboss-as7-dev mailing list