找不到JGroups后端实现类:org.hibernate.search.backend.jgroups.impl.JGroupsBackend

时间:2019-01-03 09:57:53

标签: hibernate wildfly jgroups

在最终尝试将Wildfly 10服务器升级到Wildfly 15之后,尝试部署应用程序时出现以下错误。似乎从休眠jgroups的wildfly 12中,依赖度的管理方式有所不同,但是我真的不知道如何包含它们。有人可以帮我吗?

提前感谢您的回答。

10:54:03,076 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."infoChantier-wildfly15-DVLP.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."infoChantier-wildfly15-DVLP.war".WeldStartService: Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1730)
        at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
        at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.weld.exceptions.DeploymentException: HSEARCH000197: Unable to create JGroups backend. Are you sure you have the JGroups dependencies on the classpath?
        at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:38)
        at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
        at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:499)
        at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:93)
        at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:98)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
        ... 6 more
Caused by: org.hibernate.search.exception.SearchException: HSEARCH000197: Unable to create JGroups backend. Are you sure you have the JGroups dependencies on the classpath?
        at org.hibernate.search.backend.impl.InternalBackendFactory.createJGroupsBackend(InternalBackendFactory.java:143)
        at org.hibernate.search.backend.impl.InternalBackendFactory.createBackend(InternalBackendFactory.java:74)
        at org.hibernate.search.indexes.impl.IndexManagerGroupHolder.getOrCreateBackend(IndexManagerGroupHolder.java:127)
        at org.hibernate.search.indexes.impl.IndexManagerGroupHolder.getOrCreateBackend(IndexManagerGroupHolder.java:105)
        at org.hibernate.search.indexes.impl.IndexManagerGroupHolder.doCreateIndexManager(IndexManagerGroupHolder.java:214)
        at org.hibernate.search.indexes.impl.IndexManagerGroupHolder.getOrCreateIndexManager(IndexManagerGroupHolder.java:155)
        at org.hibernate.search.indexes.impl.NotShardedEntityIndexBinder.bind(NotShardedEntityIndexBinder.java:34)
        at org.hibernate.search.indexes.impl.IndexManagerGroupHolder.bind(IndexManagerGroupHolder.java:100)
        at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:100)
        at org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:428)
        at org.hibernate.search.spi.SearchIntegratorBuilder.createNewFactoryState(SearchIntegratorBuilder.java:244)
        at org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:200)
        at org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:128)
        at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.boot(HibernateSearchSessionFactoryObserver.java:127)
        at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.lambda$sessionFactoryCreated$2(HibernateSearchSessionFactoryObserver.java:91)
        at org.hibernate.search.hcore.impl.ExtendedBeanManagerSynchronizer.beanManagerInitialized(ExtendedBeanManagerSynchronizer.java:38)
        at org.jboss.as.jpa.hibernate5.HibernateExtendedBeanManager.beanManagerIsAvailableForUse(HibernateExtendedBeanManager.java:69)
        at org.jboss.as.jpa.hibernate5.HibernatePersistenceProviderAdaptor.markPersistenceUnitAvailable(HibernatePersistenceProviderAdaptor.java:183)
        at org.jboss.as.jpa.beanmanager.BeanManagerAfterDeploymentValidation$DeferredCall.markPersistenceUnitAvailable(BeanManagerAfterDeploymentValidation.java:83)
        at org.jboss.as.jpa.beanmanager.BeanManagerAfterDeploymentValidation.markPersistenceUnitAvailable(BeanManagerAfterDeploymentValidation.java:68)
        at org.jboss.as.jpa.beanmanager.BeanManagerAfterDeploymentValidation.afterDeploymentValidation(BeanManagerAfterDeploymentValidation.java:51)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45009)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:45012)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
        at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:330)
        at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:123)
        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:308)
        at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:286)
        at javax.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:124)
        at org.jboss.weld.util.Observers.notify(Observers.java:166)
        at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:285)
        at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:273)
        at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:177)
        at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:171)
        at org.jboss.weld.bootstrap.events.AbstractContainerEvent._fire(AbstractContainerEvent.java:53)
        at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:41004)
        at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
        ... 12 more
Caused by: org.hibernate.search.exception.SearchException: Unable to find JGroups backend implementation class: org.hibernate.search.backend.jgroups.impl.JGroupsBackend
        at org.hibernate.search.util.impl.ClassLoaderHelper.classForName(ClassLoaderHelper.java:293)
        at org.hibernate.search.util.impl.ClassLoaderHelper.instanceFromName(ClassLoaderHelper.java:63)
        at org.hibernate.search.backend.impl.InternalBackendFactory.createJGroupsBackend(InternalBackendFactory.java:135)
        ... 53 more
Caused by: org.hibernate.search.engine.service.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.search.backend.jgroups.impl.JGroupsBackend]
        at org.hibernate.search.engine.service.classloading.impl.DefaultClassLoaderService.classForName(DefaultClassLoaderService.java:64)
        at org.hibernate.search.cfg.impl.DelegatingClassLoaderService.classForName(DelegatingClassLoaderService.java:48)
        at org.hibernate.search.util.impl.ClassLoaderHelper.classForName(ClassLoaderHelper.java:290)
        ... 55 more
Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.search.backend.jgroups.impl.JGroupsBackend
        at org.hibernate.search.util.impl.AggregatedClassLoader.findClass(AggregatedClassLoader.java:76)
        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)
        ... 57 more

10:54:03,109 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "infoChantier-wildfly15-DVLP.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"infoChantier-wildfly15-DVLP.war\".WeldStartService" => "Failed to start service
    Caused by: org.jboss.weld.exceptions.DeploymentException: HSEARCH000197: Unable to create JGroups backend. Are you sure you have the JGroups dependencies on the classpath?
    Caused by: org.hibernate.search.exception.SearchException: HSEARCH000197: Unable to create JGroups backend. Are you sure you have the JGroups dependencies on the classpath?
    Caused by: org.hibernate.search.exception.SearchException: Unable to find JGroups backend implementation class: org.hibernate.search.backend.jgroups.impl.JGroupsBackend
    Caused by: org.hibernate.search.engine.service.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.search.backend.jgroups.impl.JGroupsBackend]
    Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.search.backend.jgroups.impl.JGroupsBackend"}}

0 个答案:

没有答案