[jboss-dev] Mismatch between hibernate-core and jboss-cache in head
Brian Stansberry
brian.stansberry at redhat.com
Tue Nov 13 15:09:00 EST 2007
Adrian wrote:
> I'm seeing the error message below in jboss-head
> when running ejb3.
>
> The problem is that jboss-head is using hibernate 3.2.4.SP1_CP01-brew
> while it doesn't look like hibernate core was updated to use
> jbosscache-2.x until 3.3?
> http://lists.jboss.org/pipermail/hibernate-commits/2007-May/001261.html
>
This is correct. The intent is to get 3.3 in AS 5. If the Hibernate
team wanted a JBC 2.x compatible integration in 3.2.x I could do that,
although IMHO getting 3.3 in AS 5 is a better use of energy. Their 3.2.x
build environment would have to be set up to handle different versions
of JBC in separate subprojects (not sure if it is now).
Not sure what this test is really all about. It's using <property
name="hibernate.cache.provider_class"
value="org.hibernate.cache.OptimisticTreeCacheProvider"/> in its
persistence.xml-- should be <property
name="hibernate.cache.provider_class"
value="org.jboss.ejb3.entity.OptimisticTreeCacheProviderHook"/> for
usage in the AS.
> 20:38:02,934 ERROR [AbstractKernelController] Error installing to Start:
> name=persistence.units:jar=ejbthree832.jar,unitName=tempdb state=Create
> java.lang.NoClassDefFoundError: org/jboss/cache/TransactionManagerLookup
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
> at java.lang.Class.getConstructor0(Class.java:2671)
> at java.lang.Class.newInstance0(Class.java:321)
> at java.lang.Class.newInstance(Class.java:303)
> at
> org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:375)
> at
> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:245)
> at
> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
> at
> org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:918)
> at
> org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:656)
> at
> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
> at
> org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:258)
>
--
Brian Stansberry
Lead, AS Clustering
JBoss, a division of Red Hat
brian.stansberry at redhat.com
More information about the jboss-development
mailing list