[jboss-jira] [JBoss JIRA] (AS7-4313) CNFE InfinispanRegionFactory in app. with disabled caching
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Thu Mar 29 16:55:47 EDT 2012
[ https://issues.jboss.org/browse/AS7-4313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680458#comment-12680458 ]
Scott Marlow commented on AS7-4313:
-----------------------------------
https://github.com/scottmarlow/jboss-as/tree/AS7-4313_CNFE_InfinispanRegionFactory works around the CNFE with Hibernate 3.
Will make a similar change for Hibernate 4 soon.
> CNFE InfinispanRegionFactory in app. with disabled caching
> ----------------------------------------------------------
>
> Key: AS7-4313
> URL: https://issues.jboss.org/browse/AS7-4313
> Project: Application Server 7
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 7.1.1.Final
> Environment: JBoss AS 7.1.1.Final, Seam 2.2.5.EAP5, Hibernate 3.3.2.GA_CP04
> Reporter: Ron Šmeral
> Assignee: Scott Marlow
> Labels: eap6_need_triage
> Fix For: 7.1.2.Final
>
>
> In the Booking example from Seam2.2 (migrated to EAP6), the following problem occurred at deployment on AS 7.1.1:
> The application uses bundled Hibernate 3.3, configured with:
> {code:xml|title=persistence.xml}
> <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
> <property name="hibernate.cache.use_second_level_cache" value="false"/>
> <property name="hibernate.cache.use_query_cache" value="false"/>
> <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
> <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled" />
> {code}
> A deployment attempt fails with:
> {noformat}
> 14:54:13,042 WARN [org.jboss.modules] (MSC service thread 1-4) Failed to define class org.jboss.as.jpa.hibernate3.infinispan.InfinispanRegionFactory in Module "deployment.jboss-seam-booking.ear:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/jboss/as/jpa/hibernate3/infinispan/InfinispanRegionFactory (Module "deployment.jboss-seam-booking.ear:main" from Service Module Loader)
> ...
> Caused by: java.lang.NoClassDefFoundError: org/hibernate/cache/infinispan/InfinispanRegionFactory
> ...
> Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.infinispan.InfinispanRegionFactory from [Module "deployment.jboss-seam-booking.ear:main" from Service Module Loader]
> {noformat}
> *Note:*
> Full server log and EAR can be found in the referenced forum, first post.
> The workaround mentioned in the forum does *not* work.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list