`
androidssh
  • 浏览: 115732 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Unable to read TLD “META-INF/c.tld” from JAR file

    博客分类:
  • java
阅读更多

Unable to read TLD “META-INF/c.tld” from JAR file的

今天重新open project,以前是用jdk1.5、tomcat5开发、部署的,

本次使用jdk1.6、tomcat6部署,结果总是报错,启动时正常,

在通过浏览器访问项目时,出错,

错误信息如下;

Java代码 复制代码
  1. 2008-9-22 10:29:23 org.apache.catalina.core.StandardWrapperValve invoke   
  2.   
  3. 严重: Servlet.service() for servlet jsp threw exception   
  4.   
  5. org.apache.jasper.JasperException: /index.jsp(2,0) Unable to read TLD "META-INF/c.tld" from JAR file "file:/D:/svnframe/web/WEB-INF/lib/standard-1.1.2.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV   
  6.   
  7.          at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)   
  8.   
  9.          at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)   
  10.   
  11.          at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)   
  12.   
  13.          at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:334)   
  14.   
  15.          at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:367)   
  16.   
  17.          at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)   
  18.   
  19.          at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1433)   
  20.   
  21.          at org.apache.jasper.compiler.Parser.parse(Parser.java:133)   
  22.   
  23.          at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)   
  24.   
  25.          at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)   
  26.   
  27.          at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153)   
  28.   
  29.          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)   
  30.   
  31.          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)   
  32.   
  33.          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)   
  34.   
  35.          at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)   
  36.   
  37.          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)   
  38.   
  39.          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)   
  40.   
  41.          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)   
  42.   
  43.          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)   
  44.   
  45.          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)   
  46.   
  47.          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)   
  48.   
  49.          at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)   
  50.   
  51.          at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)   
  52.   
  53.          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)   
  54.   
  55.          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)   
  56.   
  57.          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)   
  58.   
  59.          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)   
  60.   
  61.          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)   
  62.   
  63.          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)   
  64.   
  65.          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)   
  66.   
  67.          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)   
  68.   
  69.          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)   
  70.   
  71.          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)   
  72.   
  73.          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)   
  74.   
  75.          at java.lang.Thread.run(Thread.java:619)   
  76.   
  77. …  
2008-9-22 10:29:23 org.apache.catalina.core.StandardWrapperValve invoke

严重: Servlet.service() for servlet jsp threw exception

org.apache.jasper.JasperException: /index.jsp(2,0) Unable to read TLD "META-INF/c.tld" from JAR file "file:/D:/svnframe/web/WEB-INF/lib/standard-1.1.2.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV

         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)

         at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:334)

         at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:367)

         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)

         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1433)

         at org.apache.jasper.compiler.Parser.parse(Parser.java:133)

         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)

         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)

         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153)

         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)

         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)

         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)

         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)

         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)

         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)

         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

         at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)

         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)

         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

         at java.lang.Thread.run(Thread.java:619)

…


解决路径;

在project-name/WEB-INF/lib下jsp-api.jar,就算是在eclipse中Build Path下接触此文件,引入tomcat6中的JSP-API.JAR . SERVLET-API.JAR,

也是不可以的,最后删除project下的此jar,问题解决。

引文如下;

引用
Unable to read TLD “META-INF/c.tld” from JAR file
I installed the lastest version of JasperServer on my my brand new server based on tomcat6 with jdk6 but on the first page I got the message “Unable to read TLD “META-INF/c.tld” from JAR file…”.

My first try was to downgrade tomcat and jdk to a previous version andit seemed to work. I first thought in a bug somewhere in tomcat and after some time (20 minutes of my precious time!!!!!) my attention got capured by a message in catalina.out “.. file geronimo.jar skiped … contains Servet violation spec….. ”

So JasperServer contains in WEB-INF/lib some servlet libraries?!?! Could be possible it’s not a war made by me so somebody could have made some mistake. Listing the files in WEB-INF/lib i found the entire world of web libraries, included jsp-api. Yes this is the problem!

Tomcat excludes genonimo.jar because it contains Servlet api’s but loads jsp-api located in WEB-INF/lib because no checkis made. No jsp can be compiled because jasper (not jasper reports) compiles from a classloader and jsp-api are located in a different classloader.

Removig jsp-api everything works fine again.

分享到:
评论

相关推荐

    无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl

    4. **拷贝TLD文件**:将`tld`文件夹中的所有TLD文件(如`c.tld`, `fmt.tld`等)复制到`WEB-INF/tld`目录下。这是为了确保Web容器能够找到JSTL的元数据。 5. **重新部署应用**:完成上述步骤后,重新部署你的Web应用...

    jsoup jar包

    2.把sitemesh-2.3.jar加入classpath中,把tld放到WebContent/WEB-INF/tld/下 3.更改web.xml文件,在适当地方加下: (1) filter配置: <filter-name>sitemesh</filter-name> <filter-class> ...

    【jstl】web-inf下的c.tld文件

    JSTL标签所需要的c.tld,放到 WEB-INF,欢迎下载,免费。

    tld文件(包含15个tld文件)

    c-1_0.tld, c-1_0-rt.tld, c.tld, fmt-1_0.tld, fmt-1_0-rt.tld, fmt.tld, fn.tld, permittedTaglibs.tld, scriptfree.tld, sql-1_0.tld, sql-1_0-rt.tld, sql.tld, x-1_0.tld, x-1_0-rt.tld, x.tld

    struts2-json-plugin-2.1.8.1.jar

    "META-INF"目录是Java存档(JAR)文件的标准部分,其中可能包含MANIFEST.MF文件,该文件记录了JAR文件的基本信息,如作者、版本和依赖库等。在某些情况下,"META-INF"还可能包含其他元数据或服务提供者接口(SPI)...

    jstl-1.2.1.jar 和jstl-api-1.2.1.jar

    例如,你可以使用 `<c:forEach>` 进行循环遍历,`<c:if>` 进行条件判断,`<fmt:formatDate>` 对日期进行格式化等。 `jstl-api-1.2.1.jar`则是JSTL的API接口库,它定义了JSTL的接口和抽象类,是与JSTL交互时的规范。...

    jstl.jar_standard.jar.zip

    <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri> <taglib-location>/WEB-INF/fmt.tld</taglib-location> </taglib> <!-- ... ...

    Spring MVC 框架应用实例

    <taglib-location>/WEB-INF/tld/c.tld</taglib-location> </taglib> <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri> <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location> </...

    jstl.jar和standard.jar 报错Can not find "http://java.sun.com/jsp/jstl/

    2. **引入TLD**:JSTL的TLD文件通常位于`META-INF`目录下的`tags`子目录中。在JSP页面顶部,我们需要导入JSTL库,如下所示: ```jsp <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> ``` 这...

    jstl jar下载

    /META-INF/c.tld</taglib-location> </taglib> <taglib-uri>/WEB-INF/jstl.tld</taglib-uri> <taglib-location>/WEB-INF/jstl.jar!/META-INF/jstl.tld</taglib-location> </taglib> ... </web-app> ``` 3. *...

    jstl.jar和standard.jar

    <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> <taglib-uri>/WEB-INF/fn.tld</taglib-uri> <taglib-location>/WEB-INF/fn.tld</taglib-location> </taglib> <taglib-uri>/WEB-INF/jstl....

    Python库 | tld-0.9.3-py2.py3-none-any.whl

    Python库`tld`是用于处理顶级域名(Top-Level Domains, TLDs)的工具,其版本0.9.3提供了对Python 2和3的支持。这个库的主要功能是能够从一个完整的URL中提取出顶级域名部分,这对于网络分析、数据清理、URL验证等任务...

    jstl-1.2.1 jar

    jstl-1.2.1,之前的版本需要在服务器中配置一下,而且它分成了两个jar(jstl.jar和standard.jar)还有一个tld文件,而1.2已经不用配置了,直接把javax.servlet.jsp.jstl-1.2.1.jar和javax.servlet.jsp.jstl-api-1.2.1...

    js包.rarMyEclipse 出错提示 Can not find the tag library descriptor for "http://java.s

    4. **验证TLD**:JSTL的TLD文件应该位于`/META-INF`目录下,具体来说是`/META-INF/c.tld`。如果MyEclipse仍然报错,可能是因为这个文件没有被正确地解析。检查这些文件是否存在于你的jar包内,并且确认MyEclipse能...

    jsp中jstl的jar包

    <taglib-location>/WEB-INF/c.tld</taglib-location> </taglib> <taglib-uri>/WEB-INF/fmt.tld</taglib-uri> <taglib-location>/WEB-INF/fmt.tld</taglib-location> </taglib> </jsp-config> ... </web-app...

    veltag-1.6.3.jar

    veltag可作为标记嵌入JSP页面。由于veltag项目未加入标准velocity...3、在JSP页面中,加入代码:<%@ taglib uri="/WEB-INF/veltag.tld" prefix="vel" %> 4、使用标签形如: #set($a="hello world") $a </vel:velocity>

    Laravel开发-tld-lang .zip.zip

    在本项目中,我们关注的是"Laravel开发-tld-lang .zip.zip",这似乎是一个关于使用Laravel框架进行多语言开发的资源包。Laravel是一个流行的开源PHP框架,用于构建优雅、高效和可扩展的Web应用程序。让我们深入探讨...

    jstl1.2.jar&stanard;.jar

    3. **检查TLD文件**:确保`/WEB-INF/tld/c.tld`文件存在并且指向正确的JSTL版本。这个文件通常在JSTL的库中自动包含,但如果你使用的是旧版JSTL或者自定义版本,可能需要手动添加。 4. **重启服务器**:完成上述...

    使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core],

    无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core],解决办法:WEB/INF的lib下,除了导入jstl.jar包,还要导入...另外,解压standard.jar包,把.tld文件放在WEB/INF下。

    jstl jar文件和tld文件

    TLD文件通常位于WEB-INF/tags目录下,Web容器会自动加载这些文件来理解并解析JSP页面中的JSTL标签。 **使用JSTL**: 1. **导入依赖**:首先需要在项目的类路径下包含`jstl.jar`和`standard.jar`(如果使用了EL...

Global site tag (gtag.js) - Google Analytics