0

我有一个奇怪的问题,它阻止我的 Grails 3.3.9 应用程序在部署到 Tomcat 8 后启动。

直到最近,我们还拥有自己的 JasperService 副本。我们已将其删除,现在正在使用Jasper 插件。唉,现在我们遇到了一个例外(ff 是我们的应用程序)

org.grails.taglib.TagLibraryLookup.registerTagLib(TagLibraryLookup.java:113)
...
org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'ff.documents.JasperService' to required type 'grails.plugins.jasper.JasperService' for property 'jasperService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'de.berlinale.ff.documents.JasperService' to required type 'grails.plugins.jasper.JasperService' for property 'jasperService': no matching editors or conversion strategy found

由于我们没有注入 JasperService 的 TagLib,我认为在某个地方仍然有旧服务的内存/引用,它实际上试图注入插件的 JasperTagLib,我无法编辑:

class JasperTagLib {
  JasperService jasperService 
  ...
}

我正在使用 IntelliJ Ultimate 2018.3 并且问题不会在本地发生,而只是在部署为与 tomcat 的战争时发生。我在路径和范围中搜索了字符串,但没有找到任何东西。

如果有人能提示我在哪里寻找这个幻影,我会很高兴。

4

1 回答 1

0

我们发现这可能是一个 Git 问题。我们分支了 master 并在没有任何更改的情况下部署了它,它启动时没有任何问题,所以我们假设它实际上是我们 master 分支的损坏的 Git 存储库。我猜@injecteer 是正确的,它必须包含一个参考。

我会给我的问题 git 标签。谢谢@injecteer

于 2019-03-07T21:40:07.947 回答