简体   繁体   English

找不到标记库描述符

[英]Can't find tag library descriptor

Yesterday I asked this question about not being able to find the tag descriptor for the JSF core libraries. 昨天我问一个关于无法找到JSF核心库的标记描述符的问题。 Now I am importing another project and I'm getting the same error of "Can't find tag library descriptor", only this time it's on the last line of this snippet: 现在我正在导入另一个项目,我收到了“无法找到标记库描述符”的相同错误,只是这次是在这个片段的最后一行:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://javascript4jsf.dev.java.net/" prefix="j4j"%>

The jar is included in the WEB-INF->lib folder, and I just can't get the error to go away. jar包含在WEB-INF-> lib文件夹中,我无法让错误消失。 My server won't even start with this project in there because it errors out. 我的服务器甚至不会从那个项目开始,因为它出错了。 How can I resolve this error message? 如何解决此错误消息?

I ended up changing my taglib declaration to this way and then I got no errors. 我最终改变了我的taglib声明,然后我没有错误。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:t="http://myfaces.apache.org/tomahawk"
        xmlns:j4j="http://javascript4jsf.dev.java.net/">

If you look inside the the j4j jar, is the TLD in there? 如果您查看j4j jar,那里有TLD吗? If so, does the TLD have taglib uri that matches the uri you posted? 如果是这样,TLD的taglib uri是否与您发布的uri相匹配?

I had issues with TLD files when using WebSphere. 使用WebSphere时,我遇到了TLD文件的问题。 Even though the TLD file was in the jar in question (in my WEB-INF/lib directory) my application could not find it. 即使TLD文件存在于有问题的jar中(在我的WEB-INF / lib目录中),我的应用程序也找不到它。 My solution was to create a WEB-INF/tld directory and pull the TLD files out of my jars and put them in my tld directory. 我的解决方案是创建一个WEB-INF / tld目录并从我的jar中提取TLD文件并将它们放在我的tld目录中。

Also, check in the j4j tld file to confirm that you are using the correct URI. 另外,检查j4j tld文件以确认您使用的是正确的URI。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到springframework的标签库描述符 - Can not find the tag library descriptor of springframework eclipse : 找不到“/struts-tags”的标签库描述符 - eclipse : Can not find the tag library descriptor for “/struts-tags” 在jsp中找不到“/struts2-jquery-tags”的标签库描述符 - Can not find the tag library descriptor for “/struts2-jquery-tags” in jsp 错误 - 找不到“/struts-tags”的标签库描述符 - Error - Can not find the tag library descriptor for “/struts-tags” JSP错误“找不到“ http://java.sun.com/jsp/jstl/core”的标记库描述符 - JSP error “Can not find the tag library descriptor for ”http://java.sun.com/jsp/jstl/core" 找不到“http://java.sun.com/jsp/jstl/core”的标签库描述符 - Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core” 找不到“http://java.sun.com/jsp/jstl/core”的标签库描述符 - Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core” 添加“ spring-security-taglibs”后,在jsp中仍然出现错误:找不到spring安全标签的标签库描述符 - After adding “spring-security-taglibs” Still getting error in jsp: Can not find the tag library descriptor for spring security tag 在Maven Eclipse项目中找不到Spring框架的标签库描述符 - cannot find tag library descriptor for spring framework in maven eclipse project Eclipse“找不到自定义标签的标签库描述符”(不是JSTL!) - Eclipse “cannot find the tag library descriptor” for custom tags (not JSTL!)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM