Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.0, 2.2.4
-
None
Description
Hey,
there is a Lucene's HitCollector runtime dependency when instantiating org.apache.jackrabbit.core.SearchManager, but HitCollector was removed from Lucene 3.x version.
[junit] java.lang.NoClassDefFoundError: org/apache/lucene/search/HitCollector
[junit] at java.lang.Class.forName0(Native Method)
[junit] at java.lang.Class.forName(Class.java:247)
[junit] at org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.java:177)
[junit] at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:631)
[junit] at org.apache.jackrabbit.core.config.RepositoryConfig.getQueryHandler(RepositoryConfig.java:1032)
[junit] at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:174)
[junit] at org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:630)
[junit] at org.apache.jackrabbit.core.RepositoryImpl.access$100(RepositoryImpl.java:124)
[junit] at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1860)
[junit] at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doPostInitialize(RepositoryImpl.java:2095)
[junit] at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:2000)
[junit] at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:533)
[junit] at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:342)
[junit] at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:605)
[junit] at org.apache.jackrabbit.core.TransientRepository$3.getRepository(TransientRepository.java:250)
[junit] at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:280)
[junit] at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:376)
........................................ omitted......................................................
[junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
[junit] Caused by: java.lang.ClassNotFoundException: org.apache.lucene.search.HitCollector
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)