tomcat Unable to read TLD "META-INF/c.tld" from JAR file

 2014-12-10 04:28:46 http-18080-exec-1 DEBUG o.s.web.servlet.DispatcherServlet processRequest 910 - Could not complete request
org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "file:/data/xxx/WEB-INF/lib/jstl-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:51) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:181) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:182) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:383) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:446) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1393) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.Parser.parse(Parser.java:130) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) ~[jasper.jar:6.0.26]
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) ~[jasper.jar:6.0.26]
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589) ~[jasper.jar:6.0.26]
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) ~[jasper.jar:6.0.26]
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) ~[jasper.jar:6.0.26]
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) ~[jasper.jar:6.0.26]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [servlet-api.jar:na]
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [catalina.jar:6.0.26]
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.26]
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) ~[catalina.jar:6.0.26]
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) ~[catalina.jar:6.0.26]
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) ~[catalina.jar:6.0.26]
 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) ~[catalina.jar:6.0.26]
 at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) ~[spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) [spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) [spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) [servlet-api.jar:na]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [servlet-api.jar:na]
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [catalina.jar:6.0.26]
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.26]
 at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE]
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.26]
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.26]
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:6.0.26]
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:6.0.26]
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:6.0.26]
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:6.0.26]
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:6.0.26]
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [catalina.jar:6.0.26]
 at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:883) [tomcat-coyote.jar:6.0.26]
 at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721) [tomcat-coyote.jar:6.0.26]
 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2258) [tomcat-coyote.jar:6.0.26]
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_15]
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_15]
 at java.lang.Thread.run(Thread.java:619) [na:1.6.0_15]

 

tomcat环境:

  apache-tomcat-6.0.26

解决方法:

mv jsp-api-2.1.jar jsp-api-2.1.jar_

删除WEB-INF\lib\下的jsp-api-2.1.jar重启问题解决
 
 
其他网友解决办法:
url:http://blog.csdn.net/hailangamy/article/details/7102734
删除WEB-INF\lib\下的JSP-API.JAR . SERVLET-API.JAR,重启问题解决,
原因:编译打包时,java build path中没有配置环境变量,WEB-INF\lib\下的这两个包和tomcat中lib的jar包冲突的原因。

你可能感兴趣的:(tomcat Unable to read TLD "META-INF/c.tld" from JAR file)