Eclipse “cannot find the tag library descriptor” for custom tags (not JSTL!)

前端 未结 22 1571
情书的邮戳
情书的邮戳 2020-12-12 16:33

I have a Java EE project which build fine with Ant, deploys perfectly to JBoss, and runs without any trouble. This project includes a few custom tag librari

相关标签:
22条回答
  • 2020-12-12 16:49

    I'm using Spring STS plugin and a Spring webmvc template project. I had to install the Maven m2e plugin first: http://www.eclipse.org/m2e/

    And then clean the project. Under Project -> Clean...

    0 讨论(0)
  • 2020-12-12 16:49

    I had the same problem with STS (springtool source suite).

    Under STS, right click on the project, than "Properties", "Project Facets", than on the right of the window click on the "runtime" tab, and check "VMware vFabric tc Server (...)", and click "Apply" and it should be OK after the workspace refresh.

    0 讨论(0)
  • 2020-12-12 16:50

    I had the same problem with a stripes taglib uri showing as not found. I was using Indigo and Maven and when I checked Properties->Java Build Path->Order & Export Tab I found (on a fresh project checkout) that the "Maven Dependencies" checkbox was unchecked for some reason. Simply checking that box and doing a Maven clean install cleared all the errors.

    I wonder why Eclipse doesn't assume I want my Maven dependencies in the build path...

    0 讨论(0)
  • 2020-12-12 16:51

    For me, this error occurs whenever I try to use a new version of eclipse. Apparently, the new eclipse resets the M2_REPO variable and I get all the tag library error in the Marker view (sometimes with ejb validation errors).

    After updating M2_REPO variable to point to actual maven repository location, it takes 2-3 Project -> Clean iterations to get everything working.

    And sometimes, there are some xml validation errors(ejb) along with this tag library errors. Manually updating the corresponding XML file, initiates a *.xsd file lookup and the xml validations errors are resolved. Post this, the tag library errors also vanish.

    0 讨论(0)
  • 2020-12-12 16:54

    When I tried to include the JSTL Core Library in my JSP:

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    

    I got the following error in Eclipse (Indigo):

    Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
    

    I went to the Project Properties -> Targeted Runtimes, and then checked the Server I was using (Geronimo 3.0). Most people would be using Tomcat. This solved my problem. Hope it helps!

    0 讨论(0)
  • 2020-12-12 16:54

    I was having the same problem using Tomcat 6.0 and Eclipse and I tried out something which my friend suggested and it worked for me. The link for the question I asked and my reply commented can be found here:

    JSTL Tomcat 6.0 Cannot find the taglib descriptor Error

    Let me know if this solves your "Cannot find the taglibrary descriptor" problem.

    0 讨论(0)
提交回复
热议问题