我正在Tomcat 7.0.23中部署多个Grails(1.3.7)应用程序。我在shared / lib而不是WEB-INF / lib中有我的* .jar文件。我在日志文件中看到了下一个输出:
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Dec 11, 2011 11:28:25 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
在Google中搜索我发现a post提出了解决方案。
解决方案在服务器/项目罐中查找重复项。就我而言 spring JSTL具有Spring标准的依赖性并且消除了 第二个解决问题(第二个包括相同的TLD)
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>com.springsource.javax.servlet.jsp.jstl</artifactId>
> <version>1.2.0</version>
> <exclusions>
> <exclusion>
> <artifactId>com.springsource.org.apache.taglibs.standard</artifactId>
> <groupId>org.apache.taglibs</groupId>
> </exclusion>
> </exclusions>
> </dependency>
但是,我不知道如何在grails应用程序中应用尖头解决方案。欢迎任何帮助。
答案 0 :(得分:0)
您可以在BuildConfig.groovy
中的Grails应用中排除传递依赖项grails.project.dependency.resolution = {
// inherit all Grails' default dependencies except xml-apis
inherits("global") {
excludes 'xml-apis'
}
// dependency on jsoup that excludes transitive dependency on foo 1.0.0
compile 'org.jsoup:jsoup:1.6.1' {
excludes 'org.jsoup:foo:1.0.0'
}
}