-
Bug
-
Resolution: Done
-
Major
-
8.1.0.Final
-
None
-
https://github.com/infinispan/infinispan/pull/4102, https://github.com/infinispan/infinispan/pull/4103, https://github.com/infinispan/infinispan/pull/4104, https://github.com/infinispan/infinispan/pull/4121, https://github.com/infinispan/infinispan/pull/4122, https://github.com/infinispan/infinispan/pull/4123
Errors are logged, REST service fails to start due to classloading problems of InfinispanIndexManager. This happens because the rest cache is not defined in the configuration so it gets created automatically based on the default config which happens to be an indexed cache, using InfinispanIndexManager, which is not normally available to the REST service. The tests do not fail.
8:58:51,182 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.datagrid-infinispan-endpoint.rest.rest-connector: org.jboss.msc.service.StartException in service jboss.datagrid-infinispan-endpoint.rest.rest-connector: DGENDPT10015: Could not create the web context for the REST Server at org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:103) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.hibernate.search.engine.service.classloading.spi.ClassLoadingException: Unable to load class [org.infinispan.query.indexmanager.InfinispanIndexManager] at org.hibernate.search.engine.service.classloading.impl.DefaultClassLoaderService.classForName(DefaultClassLoaderService.java:64) at org.hibernate.search.util.impl.ClassLoaderHelper.classForName(ClassLoaderHelper.java:320) at org.hibernate.search.engine.impl.DefaultIndexManagerFactory.createIndexManagerByName(DefaultIndexManagerFactory.java:54) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:247) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:513) at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:482) at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:91) at org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:358) at org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:199) at org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:117) at org.infinispan.query.impl.LifecycleManager.getSearchFactory(LifecycleManager.java:300) at org.infinispan.query.impl.LifecycleManager.cacheStarting(LifecycleManager.java:112) 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:849) at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:635) at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:585) at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:451) at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:470) at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:461) at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:94) at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:85) at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:26) at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:14) at org.infinispan.security.Security.doPrivileged(Security.java:76) at org.infinispan.rest.SecurityActions.doPrivileged(SecurityActions.java:24) at org.infinispan.rest.SecurityActions.getCache(SecurityActions.java:31) at org.infinispan.rest.NettyRestServer$$anonfun$startCaches$1.apply(NettyRestServer.scala:77) at org.infinispan.rest.NettyRestServer$$anonfun$startCaches$1.apply(NettyRestServer.scala:77) at scala.collection.Iterator$class.foreach(Iterator.scala:742) at scala.collection.AbstractIterator.foreach(Iterator.scala:1194) at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at org.infinispan.rest.NettyRestServer$.startCaches(NettyRestServer.scala:77) at org.infinispan.rest.NettyRestServer$.apply(NettyRestServer.scala:52) at org.infinispan.rest.NettyRestServer$.apply(NettyRestServer.scala:46) at org.infinispan.rest.NettyRestServer.apply(NettyRestServer.scala) at org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:101) ... 5 more Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.infinispan.query.indexmanager.InfinispanIndexManager at org.hibernate.search.util.impl.AggregatedClassLoader.findClass(AggregatedClassLoader.java:75) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.hibernate.search.engine.service.classloading.impl.DefaultClassLoaderService.classForName(DefaultClassLoaderService.java:61) ... 42 more