« links for 2006-05-16 | Main | links for 2006-05-17 »


今天在 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

真是感谢!我也查了半天

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.

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 :)

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

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!

Love: George Harrison's Penmanship

Facebook Letter Faces is really a pirated version of Process Type's Klavika. Please remove it.

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.

Definitely, what a fantastic site and enlightening posts, I surely will bookmark your blog.All the Best!

thanks, I believe your visitors could possibly want significantly more articles similar to this carry on the superior operate.

I am glad to be one of several visitants on this great site (:, thankyou for putting up.

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.

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..

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.

You made some decent points there. I did a search on the subject matter and found most guys will approve with your website.

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!

very interesting details you have observed , thankyou for putting up.

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.

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.

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

Post a comment