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

前端 未结 22 1572
情书的邮戳
情书的邮戳 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:57

    I fixed this problem today.

    • Change your output directory to your WEB-INF/classes folder. (Project/Properties/Java Build Path, Default output folder)
    • Assigne the module dependencies. (Project/Properties/Java EE Module Dependencies) they will be copied to the WEB-INF/lib folder where Eclipse looks for the tag lib definitions too.

    I hope it helps.

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

    replace jstl.jar to jstl1.2.jar resolved the issue for tomcat 7.0

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

    Ran into the same problem, I'm using maven so I added this to the pom in my web project:

    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
        <version>1.2</version> <!-- just used the latest version, make sure you use the one you need -->
        <scope>provided</scope>
    </dependency>
    

    This fixed the problem and I used "provided" scope because like the OP, everything was already working in JBoss.

    Here's where I found the solution: http://alfredjava.wordpress.com/2008/12/22/jstl-connot-resolved/

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

    I had the same problem with MyEclipse and Eclipse 6.6.0. It red lined the uri value in every

    <%@ taglib prefix="s" uri="/struts-tags"%>. I fixed it by going to 'Project/MyEclipse/Web/Tag Libraries' and setting the Default TLD Prefix for Struts 1.2 Tiles Tags to 's'. I also had to do the same under 'Project/MyEclipse/Web/Configure workspace settings.../Tag Libraries'.

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