【发布时间】:2016-11-16 14:57:06
【问题描述】:
使用 lucene-core-5.5.2 我在 weblogic 服务器中遇到了问题。独立的搜索应用程序可以工作,但是当我部署为 WEB APP 时,它失败并出现以下错误
Exception type is 'java.lang.ExceptionInInitializerError'. Runtime error: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene54' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: []
我尝试在classes/ 下创建文件夹结构,因为META-INF/services/ 添加了来自lucene-core-5.5.2.jar META-INF\services\ 目录的所有文件,还为META-INF\services\ 创建了jar 文件并添加到类路径中,但它无法识别META-INF/services 来加载SPI
任何帮助将不胜感激。
【问题讨论】: