我正在我的机器上运行一个播放项目,当我启动它并通过另一个Web服务器(发送/接收请求)使用它时,我得到以下异常。我已经将lucene 6 jar文件添加到lib目录中,但不确定导致此异常的原因是什么?
的lucene-的QueryParser
任何提示?
a.a.ActorSystemImpl - Uncaught fatal error from thread [application-akka.actor.default-dispatcher-9] shutting down ActorSystem [application]
java.lang.NoClassDefFoundError: org/apache/lucene/analysis/util/CharArraySet
at artest.engine.common.ArabicAnalyzerFactory.getStemmingArabicAnalyzer(ArabicAnalyzerFactory.java:67)
at engine.AbstractSearcher.<init>(AbstractSearcher.java:116)
at engine.DocumentsSearcher.<init>(DocumentsSearcher.java:53)
at engine.SearcherFactory.getSearcher(SearcherFactory.java:34)
at controllers.SearchersFactory.<clinit>(SearchersFactory.java:30)
at controllers.DocumentsController.search(DocumentsController.java:226)
at router.Routes$$anonfun$routes$1$$anonfun$applyOrElse$1$$anonfun$apply$1.apply(Routes.scala:193)
at router.Routes$$anonfun$routes$1$$anonfun$applyOrElse$1$$anonfun$apply$1.apply(Routes.scala:193)
at play.core.routing.HandlerInvokerFactory$$anon$4.resultCall(HandlerInvoker.scala:157)
at play.core.routing.HandlerInvokerFactory$$anon$4.resultCall(HandlerInvoker.scala:156)
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.analysis.util.CharArraySet
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at artest.engine.common.ArabicAnalyzerFactory.getStemmingArabicAnalyzer(ArabicAnalyzerFactory.java:67)
at engine.AbstractSearcher.<init>(AbstractSearcher.java:116)
at engine.DocumentsSearcher.<init>(DocumentsSearcher.java:53)
at engine.SearcherFactory.getSearcher(SearcherFactory.java:34)
at controllers.SearchersFactory.<clinit>(SearchersFactory.java:30)
at controllers.DocumentsController.search(DocumentsController.java:226)
at router.Routes$$anonfun$routes$1$$anonfun$applyOrElse$1$$anonfun$apply$1.apply(Routes.scala:193)
答案 0 :(得分:0)