Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-450

EAP modules miss hibernate-commons-annotations resulting into a failure on EAP6

XMLWordPrintable

    • JDG Sprint #27

      infinispan-query depends on hibernate-commons-annotations:5.0.1.Final which are missing in jboss-datagrid-7.0.0.ER7-eap-modules-library. EAP7 provides this module, but EAP6 has older hibernate-commons-annotations (4.2) and thus deployment on EAP6 fails with ClassNotFoundException like this one:

      Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.ClassLoadingException from [Module "org.hibernate.search.engine:jdg-7.0" from local module loader @16f65612 (finder: local module finder @311d617d (roots: /mnt/hudson_workspace/workspace/jdg-func-invm-in-containers/0c50dcad/eap-server/eap64-0/modules,/mnt/hudson_workspace/workspace/jdg-func-invm-in-containers/0c50dcad/eap-server/eap64-0/modules/system/layers/base))]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
      	at org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:320)
      	at org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:200)
      	at org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:118)
      	at org.infinispan.query.impl.LifecycleManager.getSearchFactory(LifecycleManager.java:316)
      	at org.infinispan.query.impl.LifecycleManager.cacheStarting(LifecycleManager.java:111)
      	at org.infinispan.factories.ComponentRegistry.notifyCacheStarting(ComponentRegistry.java:247)
      	at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:236)
      	at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:890)
      	at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:636)
      	at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:586)
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:451)
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:437)
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:419)
      	at org.infinispan.test.MultipleCacheManagersTest.createClusteredCaches(MultipleCacheManagersTest.java:281)
      	at org.infinispan.query.dsl.embedded.QueryDslConditionsTest.createCacheManagers(QueryDslConditionsTest.java:71)
      

      Adding appropriate module fixes the issue.

              remerson@redhat.com Ryan Emerson
              vjuranek@redhat.com Vojtech Juranek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: