名称为'Lucene54'的org.apache.lucene.codecs.Codec类型的SPI类不存在 [英] An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene54' does not exist
问题描述
使用lucene-core-5.5.2,我在weblogic服务器中遇到问题a.独立搜索应用程序可以运行,但是当我作为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 >
任何帮助将不胜感激.
请在
中添加以下文件文件夹:META-INF/services/
文件:org.apache.lucene.codecs.Codec
文本:org.apache.lucene.codecs.lucene54.Lucene54Codec
With lucene-core-5.5.2 i am facing problem a in weblogic server. standalone search application works but when i deploy as WEB APP it is failing with below error
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: []
I tried creating folder structure under classes/
as META-INF/services/
added all files from lucene-core-5.5.2.jar META-INF\services\
directory also created jar file for META-INF\services\
and added in classpath but it doesn't recognize META-INF/services
to load SPI
Any help would be really appreciated.
Please add following file in
Folder : META-INF/services/
File :org.apache.lucene.codecs.Codec
Text :org.apache.lucene.codecs.lucene54.Lucene54Codec
Please review the solution with detailed description at https://anwaarlabs.wordpress.com/2017/02/25/lucene-an-spi-class-of-type-org-apache-lucene-codecs-codec-with-name-does-not-exist/
这篇关于名称为'Lucene54'的org.apache.lucene.codecs.Codec类型的SPI类不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!