What does “INFO: TLD skipped. URI is already defined” mean?

前端 未结 3 1266
日久生厌
日久生厌 2021-02-13 06:06

When running my JSF 2 application in eclipse I am getting several info logs that TLD was skipped because it\'s already defined as follows:



        
3条回答
  •  情话喂你
    2021-02-13 07:05

    It means for example if you use Tomcat and Maven (or others servers) that you ship a JSTL library that is already found on the server and the server does complain.

        
            javax.servlet
            jstl
            1.2
        
    

    At the time you application is deployed (on Tomcat) then you get the error message:

    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Mar 02, 2017 2:19:32 PM org.apache.catalina.startup.TaglibUriRule body
    

    The solution is to use the tag 'scope' and a value of 'provided' because JSTL is already shipped with Tomcat (it is only for your IDE):

        
            javax.servlet
            jstl
            1.2
            provided
        
    

    Then the error will disappear.

提交回复
热议问题