I was trying to test my application on AS 7 Beta 3, and enable the second-level cache, since Beta 3 integrated Infinispan. I followed the configuration directions here:
http://community.jboss.org/wiki/usingin ... heproviderAfter building the ear again, I deployed to a clustered configuration on AS 7 Beta 3, and during deployment 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
So, I looked in the jars for the Hibernate module, and sure enough there doesn't appear to be any of the second-level cache classes I would expect.
Is there a reason why the Hibernate that is picked up in AS 7 does not have the second-level cache implementation?
Can I take another build, and replace the jars in AS 7 to get this functionality?