“NoSuchException” exception when trying to deploy with wildfly13
“NoSuchException” exception when trying to deploy with wildfly13
I've programmed an application which is running without problems with wildfly 10. Now I finally want to upgrade to wildfly 13 an I get the following exception:
16:20:26,336 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 72) MSC000001: Failed to start service jboss.persistenceunit."accident-wildfly13-DVLP.war#accident": org.jboss.msc.service.StartException in service jboss.persistenceunit."accident-wildfly13-DVLP.war#accident": java.lang.NoSuchMethodError: org.hibernate.search.store.spi.LockFactoryCreator.createLockFactory(Ljava/nio/file/Path;Ljava/util/Properties;)Lorg/apache/lucene/store/LockFactory;
at org.jboss.as.jpa@13.0.0.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:195)
at org.jboss.as.jpa@13.0.0.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:125)
at org.wildfly.security.elytron-private@1.3.3.Final//org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:650)
at org.jboss.as.jpa@13.0.0.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:209)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.base/java.lang.Thread.run(Thread.java:844)
at org.jboss.threads@2.3.2.Final//org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: java.lang.NoSuchMethodError: org.hibernate.search.store.spi.LockFactoryCreator.createLockFactory(Ljava/nio/file/Path;Ljava/util/Properties;)Lorg/apache/lucene/store/LockFactory;
at org.infinispan.hibernate-search.directory-provider:for-hibernatesearch-5.5@9.2.4.Final//org.infinispan.hibernate.search.spi.InfinispanDirectoryProvider.getLockFactory(InfinispanDirectoryProvider.java:97)
at org.infinispan.hibernate-search.directory-provider:for-hibernatesearch-5.5@9.2.4.Final//org.infinispan.hibernate.search.spi.InfinispanDirectoryProvider.initialize(InfinispanDirectoryProvider.java:90)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.store.spi.BaseDirectoryProviderService.initialize(BaseDirectoryProviderService.java:64)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.store.spi.BaseDirectoryProviderService.create(BaseDirectoryProviderService.java:52)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.createDirectoryProvider(DirectoryBasedIndexManager.java:230)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:90)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:256)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:513)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:482)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:91)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:358)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:199)
at org.hibernate.search.engine@5.5.8.Final//org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:117)
at org.hibernate.search.orm@5.5.8.Final//org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:75)
at org.hibernate@5.1.14.Final//org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:35)
at org.hibernate@5.1.14.Final//org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:540)
at org.hibernate@5.1.14.Final//org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:423)
at org.hibernate@5.1.14.Final//org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880)
at org.hibernate.jipijapa-hibernate5@13.0.0.Final//org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
at org.jboss.as.jpa@13.0.0.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:167)
... 9 more
I think that some kind of version collision with hibernate / infinispan is causing this error but I am unable to track it down.
Can someone help me?
Thanks in advance
Hello, no I'm using Java 9.
– user2423989
Jul 2 at 14:26
1 Answer
1
Try upgrading hibernate-search-engine to 5.8.0.Beta4 or later.
Your problem is caused by this change:
See also:
https://hibernate.atlassian.net/browse/HSEARCH-2775
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Have you tried running on Java 8 by chance? The 5.5.8.Final version doesn't have that signature so I'm not sure where that's coming from.
– James R. Perkins
Jun 29 at 17:32