日期:2014-05-20  浏览次数:20818 次

一个郁闷的问题?快疯了
HTTP Status 500 - 

--------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: /login.jsp(2,66) Unable to read TLD "META-INF/tlds/struts-bean.tld" from JAR file "file:/C:/apache-tomcat-6.0.32/webapps/yeexing_admin/WEB-INF/lib/struts.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:218)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:183)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:450)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1397)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.


--------------------------------------------

Apache Tomcat/6.0.32

 不知道谁遇到过,这种问题,郁闷,不是jsp-api.jar冲突的问题,就是找不到解决办法

------解决方案--------------------
Unable to read TLD "META-INF/tlds/struts-bean.tld ",换个struts的包试试



org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD "META-INF/tlds/struts-bean.tld" from JAR file "file:*****/WEB-INF/lib/struts.jar": 

原因:经过几天测试发现更新了工程用的lib文件夹下的jar,发布时也发布了servlet.jar和jsp-api.jar。 

解决办法: 

方法一:把jsp-api.jar删除就解决这个问题了。 
方法二:将Tomcat换成6.0 
我的解决办法:删除servlet.jar及与servlet相关的jar文件 

试试看呢
------解决方案--------------------
LZ,你的错误就是无法解析你的tld文件,这个tld文件就是你的标签定义的文件
现在出现错误,比较彻底的方法就是直接换个jar包
------解决方案--------------------
TLD 文件放对位置了吗?应该在WEB-INF/下
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html