今天在 Tomcat 上遇到的一个奇怪问题
发现应用不能用了,反复测试发现页面中不能包含 taglib,否则会出现以下提示:
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: /index.jsp(1,1) Unable to read TLD "META-INF/tlds/struts-bean.tld" from JAR file "file:/C:/home/chaifeng/eclipse_workspace/cnlife365_tracker/web/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.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:75)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause
org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD "META-INF/tlds/struts-bean.tld" from JAR file "file:/C:/home/chaifeng/eclipse_workspace/cnlife365_tracker/web/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:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:75)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Apache Tomcat/5.5.17
想了半天,刚才没有改动代码。折腾了半天才想起来,只是更新了一下lib下的jar,一时图方便就把另外一个目录下的jar全都复制过来了,包括 jsp-api.jar。
把它删除就ok了,记录一下。
Comments
真是感谢!我也查了半天
Posted by: aiter | August 7, 2006 5:00 PM
I would like to thnkx for the efforts you've put in writing this site. I am hoping the same high-grade website post from you in the upcoming as well. In fact your creative writing abilities has inspired me to get my own blog now. Actually the blogging is spreading its wings quickly. Your write up is a good example of it.
Posted by: tworzenie stron | November 8, 2011 4:53 PM
I like what you guys are up also. Such smart work and reporting! Keep up the excellent works guys I have incorporated you guys to my blogroll. I think it'll improve the value of my web site :)
Posted by: strony internetowe RzeszĂłw | January 2, 2012 5:21 PM
Very cool Mr. Elliot. I am starved for missives from the mailbox. I'll admit it, I even open junk mail. (Hey, maybe it's a check with a lot of zeros at the end.) Such a sad existence for me when my one particular a small rush of importance is ripping open junk mail. Bills can wait around, so a real letter sounds excellent. Will subscribe.
Cheers, Iris
Posted by: Colby Jarvis | May 10, 2012 5:51 AM
I was recommended this blog by my cousin. I'm not sure whether this post is written by him as nobody else know such detailed about my problem. You're amazing! Thanks!
Posted by: regim hotelier bucuresti ieftin | June 6, 2012 5:04 PM
Love: George Harrison's Penmanship
Posted by: Tricia Pellow | August 10, 2012 8:36 PM
Facebook Letter Faces is really a pirated version of Process Type's Klavika. Please remove it.
Posted by: free business plans | August 30, 2012 10:37 AM
Idk why but i dont think pinterest would be a game changer, facebook just reached 900 million and would eat every social network which comes up.
Posted by: business plans template | August 31, 2012 12:58 AM
Definitely, what a fantastic site and enlightening posts, I surely will bookmark your blog.All the Best!
Posted by: electronic mouse trap | August 31, 2012 9:11 PM
thanks, I believe your visitors could possibly want significantly more articles similar to this carry on the superior operate.
Posted by: Courtney Flicker | September 1, 2012 11:45 PM
I am glad to be one of several visitants on this great site (:, thankyou for putting up.
Posted by: Beaulah Boche | September 14, 2012 11:51 PM
Like ....
Posted by: برنامج المايسترو | September 22, 2012 4:25 PM
Any individual do this nevertheless? https://alaboard.com/products-page/fridge-calendars/ they say you are able to receive a Absolutely free fridge calendar. Just variety from the coupon code Free. I tried it and it took it off the purchase price but I did not order however. Required to determine if anyone else experienced performed it to start with.
Posted by: Arnoldo Nessen | September 25, 2012 12:47 PM
Try using a fresh blade every couple of times, and a shaving cream that has been fortified with hydrating emollients (lubricating thickening agents that prevent water loss and have a softening and soothing effect on skin). After shaving, apply a light moisturizer. If you prefer an after-shave product, be wary of those that contain alcohol or menthol; these ingredients can irritate the skin..
Posted by: pandora store | November 21, 2012 7:45 PM
You made some decent points there. I checked on the internet for more information about the issue and found most people will go along with your views on this web site.
Posted by: Cody Webb | December 4, 2012 12:52 AM
You made some decent points there. I did a search on the subject matter and found most guys will approve with your website.
Posted by: Dominick Menner | December 7, 2012 9:46 AM
OK MARTY What s up?yes folks take it from me--[and I am? a guitar teacher too]this lad marty is a god--he really can play but more importantly he can teach guitar and equally important ,he makes it fun!!great craic boyo!
Posted by: bass guitar lessons | December 9, 2012 9:27 AM
very interesting details you have observed , thankyou for putting up.
Posted by: Mitchel Mondier | December 9, 2012 10:03 AM
Thank you for this article. I'd also like to state that it can often be hard when you're in school and merely starting out to initiate a long credit score. There are many learners who are only trying to endure and have long or positive credit history can occasionally be a difficult issue to have.
Posted by: Armando Dougal | December 10, 2012 10:17 PM
I have seen lots of useful things on your internet site about computer systems. However, I've got the opinion that notebook computers are still not quite powerful sufficiently to be a good option if you frequently do projects that require a great deal of power, including video editing. But for web surfing, word processing, and majority of other typical computer functions they are just great, provided you may not mind your little friend screen size. Appreciate sharing your ideas.
Posted by: Arden Rombach | December 15, 2012 7:29 AM
30 Rock star has been a longtime supporter of the cause - last year 10 he donated $25,000 £15,625 to the library for various
Posted by: Moncler Coats | December 20, 2012 9:32 AM