- 浏览: 115732 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
SSB4455:
嗯 应该是这样
java线程学习之Thread.sleep() 和 Thread.yield() 区别 -
wishlee:
不详细啊
Java中23种设计模式详解 -
Vin-G:
正在学习,我想修改成:在主屏中不能长按和拖拉,不知道能不能实现 ...
android2.2源码在eclipse中的配置与分析 -
star_887012:
qq16881699 写道LZ的文章就是海量数据。。。。
常见的海量数据处理方法 -
I清晰:
看来头疼啊
常见的海量数据处理方法
Unable to read TLD “META-INF/c.tld” from JAR file的
今天重新open project,以前是用jdk1.5、tomcat5开发、部署的,
本次使用jdk1.6、tomcat6部署,结果总是报错,启动时正常,
在通过浏览器访问项目时,出错,
错误信息如下;
解决路径;
在project-name/WEB-INF/lib下jsp-api.jar,就算是在eclipse中Build Path下接触此文件,引入tomcat6中的JSP-API.JAR . SERVLET-API.JAR,
也是不可以的,最后删除project下的此jar,问题解决。
引文如下;
本次使用jdk1.6、tomcat6部署,结果总是报错,启动时正常,
在通过浏览器访问项目时,出错,
错误信息如下;
- 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)
- …
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.
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.
发表评论
-
Java Map遍历速度最优解
2011-12-09 13:01 1632HashMap的遍历有两种常用的方法,那就是使用key ... -
LinkedHashSet源码带来的思考
2011-09-01 21:45 11071、LinkedHashSet具有可预知迭代顺序的Set接口的 ... -
移动互联网时代已经来临,天下将是谁的?谁能笑到最后?
2011-08-27 17:20 95280年代末90年代初,是通 ... -
JAVA连接各种数据库
2011-07-27 21:05 8021、Oracle8/8i/9i数据库(thin模式) ... -
java(多线程)实现高性能数据同步
2011-06-23 22:36 2478需要将生产环境上Infoxmix里的数据原封不动的Co ... -
分布式系统数据同步解决方案
2011-06-23 21:52 1761Web Service 现如今已经成为 SOA ... -
常见的海量数据处理方法
2011-06-22 20:40 24771. 给定a、b两个文件, ... -
中文繁体和简体相互转换tranditional.txt文件
2011-06-13 10:35 2625啊阿埃挨哎唉哀皚癌藹 ... -
中文繁体和简体相互转换simplified.txt文件
2011-06-13 10:34 2989啊阿埃挨哎唉哀皑癌蔼 ... -
词性标注程序探讨
2011-03-07 20:39 1114程序设计主要分为五个部分,即词频统计和词性符号 ... -
初探Java 7异常处理功能增强
2011-03-07 20:35 836Java异常处理语法是指是Java开发者最为头疼的事情,也是 ... -
Java中堆内存与栈内存分配浅析
2011-03-07 20:30 816原文出处:http://soft.chin ... -
Java NIO与IO的区别和比较
2010-10-29 17:37 1019Java NIO与IO的区别和比较 导读 J2SE1. ... -
java nio 开发实例
2010-10-29 17:36 1453java nio 开发实例 ... -
全面总结java操作符
2010-10-21 11:13 1353java操作符共分为 ... -
详细解说关于Java.io的使用
2010-09-30 08:50 968Java的核心库java.io提供了全面的IO接口,包 ... -
Java线程学习笔记之Executor
2010-09-14 15:37 972Java线程学习笔记之Executor 并发编程的一种 ... -
java线程学习之Thread.sleep() 和 Thread.yield() 区别
2010-09-14 15:14 3557Thread.sleep() 和 Thread.yield() ... -
迅雷最新(2010.8.19)面试试题
2010-08-20 08:30 1084昨天去了深圳迅雷 ... -
java api学习(一)
2010-08-19 08:21 1313jdk1.6大概包含202个包,共3777个类,学好j ...
相关推荐
4. **拷贝TLD文件**:将`tld`文件夹中的所有TLD文件(如`c.tld`, `fmt.tld`等)复制到`WEB-INF/tld`目录下。这是为了确保Web容器能够找到JSTL的元数据。 5. **重新部署应用**:完成上述步骤后,重新部署你的Web应用...
2.把sitemesh-2.3.jar加入classpath中,把tld放到WebContent/WEB-INF/tld/下 3.更改web.xml文件,在适当地方加下: (1) filter配置: <filter-name>sitemesh</filter-name> <filter-class> ...
JSTL标签所需要的c.tld,放到 WEB-INF,欢迎下载,免费。
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
"META-INF"目录是Java存档(JAR)文件的标准部分,其中可能包含MANIFEST.MF文件,该文件记录了JAR文件的基本信息,如作者、版本和依赖库等。在某些情况下,"META-INF"还可能包含其他元数据或服务提供者接口(SPI)...
例如,你可以使用 `<c:forEach>` 进行循环遍历,`<c:if>` 进行条件判断,`<fmt:formatDate>` 对日期进行格式化等。 `jstl-api-1.2.1.jar`则是JSTL的API接口库,它定义了JSTL的接口和抽象类,是与JSTL交互时的规范。...
<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> <!-- ... ...
<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> </...
2. **引入TLD**:JSTL的TLD文件通常位于`META-INF`目录下的`tags`子目录中。在JSP页面顶部,我们需要导入JSTL库,如下所示: ```jsp <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> ``` 这...
/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. *...
<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`是用于处理顶级域名(Top-Level Domains, TLDs)的工具,其版本0.9.3提供了对Python 2和3的支持。这个库的主要功能是能够从一个完整的URL中提取出顶级域名部分,这对于网络分析、数据清理、URL验证等任务...
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...
4. **验证TLD**:JSTL的TLD文件应该位于`/META-INF`目录下,具体来说是`/META-INF/c.tld`。如果MyEclipse仍然报错,可能是因为这个文件没有被正确地解析。检查这些文件是否存在于你的jar包内,并且确认MyEclipse能...
<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可作为标记嵌入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框架进行多语言开发的资源包。Laravel是一个流行的开源PHP框架,用于构建优雅、高效和可扩展的Web应用程序。让我们深入探讨...
3. **检查TLD文件**:确保`/WEB-INF/tld/c.tld`文件存在并且指向正确的JSTL版本。这个文件通常在JSTL的库中自动包含,但如果你使用的是旧版JSTL或者自定义版本,可能需要手动添加。 4. **重启服务器**:完成上述...
无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core],解决办法:WEB/INF的lib下,除了导入jstl.jar包,还要导入...另外,解压standard.jar包,把.tld文件放在WEB/INF下。
TLD文件通常位于WEB-INF/tags目录下,Web容器会自动加载这些文件来理解并解析JSP页面中的JSTL标签。 **使用JSTL**: 1. **导入依赖**:首先需要在项目的类路径下包含`jstl.jar`和`standard.jar`(如果使用了EL...