AS7 kit does not include JMS dependency

Description

When attempting to configure Hibernate Search with JMS(HornetQ) in AS7/EAP, an exception similar to:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Caused by: java.lang.NoClassDefFoundError: javax/jms/JMSException at org.hibernate.search.backend.BackendFactory.createBackend(BackendFactory.java:61) [hibernate-search-engine-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.createBackend(DirectoryBasedIndexManager.java:224) [hibernate-search-engine-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:103) [hibernate-search-engine-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:227) [hibernate-search-engine-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:102) [hibernate-search-engine-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:414) [hibernate-search-engine-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:222) [hibernate-search-engine-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:146) [hibernate-search-engine-4.2.0.Final.jar:4.2.0.Final] at org.modeshape.jcr.RepositoryQueryManager.queryEngine(RepositoryQueryManager.java:175) [modeshape-jcr-3.3-SNAPSHOT.jar:3.3-SNAPSHOT] at org.modeshape.jcr.RepositoryQueryManager.getIndexes(RepositoryQueryManager.java:161) [modeshape-jcr-3.3-SNAPSHOT.jar:3.3-SNAPSHOT] at org.modeshape.jcr.JcrRepository$RepositoryMonitorFactory.indexingMonitor(JcrRepository.java:1801) [modeshape-jcr-3.3-SNAPSHOT.jar:3.3-SNAPSHOT] at org.modeshape.jcr.JcrRepository$RepositoryMonitorFactory.createMonitor(JcrRepository.java:1795) [modeshape-jcr-3.3-SNAPSHOT.jar:3.3-SNAPSHOT] at org.modeshape.jcr.txn.Transactions.newMonitor(Transactions.java:229) [modeshape-jcr-3.3-SNAPSHOT.jar:3.3-SNAPSHOT] at org.modeshape.jcr.txn.Transactions$BaseTransaction.createMonitor(Transactions.java:242) [modeshape-jcr-3.3-SNAPSHOT.jar:3.3-SNAPSHOT] at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:373) [modeshape-jcr-3.3-SNAPSHOT.jar:3.3-SNAPSHOT] ... 59 more Caused by: java.lang.ClassNotFoundException: javax.jms.JMSException from [Module "org.hibernate.search.engine:main" from local module loader @c75e4fc (finder: local module finder @100c62c8 (roots: D:\Work\jboss-eap-6.1-ms-3.3.0\modules,D:\Work\jboss-eap-6.1-ms-3.3.0\modules\system\layers\base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1-redhat-1] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1-redhat-1] ... 74 more

will be raised due to a missing javax.jms.api dependency in the main hibernate search module.

Environment

None

Status

Assignee

Davide D'Alto

Reporter

Horia Chiorean

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Affects versions

4.2.0.Final

Priority

Major