Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将一个 JSR-286 portlet 应用程序部署到 JBoss GateIn,该应用程序具有打包在 WEB-INF/lib 中的自己的 lucene 版本(3.1)。
出于某种原因,它在运行时给了我 GateIn 的 lucene (2.9.4) 类,因此产生了这个错误:
java.lang.NoSuchFieldError: LUCENE_31
有谁知道如何配置 portlet 应用程序和 GateIn 以让它加载自己的 lucene 库。
我可以通过创建 JBoss 模块并将依赖项添加到 war 文件的清单来修复错误。