При использовании lucene-core-5.5.2 я столкнулся с проблемой на сервере веб-логики. автономное приложение поиска работает, но когда я развертываю его как веб-приложение, оно выходит из строя с ошибкой ниже
Код: Выделить всё
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: []
Я попробовал создать структуру папок в классах/, поскольку META-INF/services/ добавил все файлы из каталога lucene-core-5.5.2.jar META-INF\services\, также создал jar-файл для META-INF\services\ и добавил в путь к классам, но он не распознает META-INF/services для загрузки SPI
Будем очень благодарны за любую помощь.
Подробнее здесь:
https://stackoverflow.com/questions/383 ... 54-does-no