我正在将应用程序从Grails 2.3.3升级到2.4.4,并且我已经完成了所需的更改。 grails compile命令运行干净但我在运行应用程序期间遇到了一些错误。
[ERROR] org.apache.tomcat.util.digester.Digester [End event threw exception]
....
Caused by: java.lang.IllegalArgumentException: Duplicate filter name [AssetPipelineFilter]
at org.apache.catalina.deploy.WebXml.addFilter(WebXml.java:243)
然后
[ERROR] org.apache.catalina.startup.ContextConfig [Parse error in application web.xml file at file:/Users/greg/.grails/2.4.4/projects/MyApp/resources/web.xml]
org.xml.sax.SAXParseException; systemId: file:/Users/greg/.grails/2.4.4/projects/MyApp/resources/web.xml; lineNumber: 64; columnNumber: 14; Error at (64, 14) : Duplicate filter name [AssetPipelineFilter]
....
Caused by: java.lang.IllegalArgumentException: Duplicate filter name [AssetPipelineFilter]