Grails插件引用了废弃的同名自定义服务

时间:2019-03-05 17:59:18

标签: spring git grails jasper-plugin

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

直到最近,我们都有自己的JasperService副本。我们已删除了它,现在正在使用Jasper Plugin。 las,现在我们遇到了一个例外(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中,我无法编辑: / p>

class JasperTagLib {
  JasperService jasperService 
  ...
}

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

如果有人能提示我寻找幻影的方向,我会很高兴。

1 个答案:

答案 0 :(得分:0)

我们发现这可能是Git问题。我们分支了master,并对其进行了部署,没有做任何更改,并且它没有启动任何问题,因此我们认为它实际上是master分支的损坏的Git存储库。我猜@injecteer必须包含一个引用是正确的。

我将给我的问题加上git标签。谢谢@injecteer