=====javax.servlet.jsp.JspException: Cannot find bean,常见的错误,不常见的场景。急求解决=====
j9dai 2014-07-30 04:43:49 项目背景:
老项目,strus1.3 + spring + jdbc + jsp,已稳定运行好几年,最近几天系统界面偶卡一两分钟后自动恢复,查错误日志如下:
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/agent].[jsp]] Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Cannot find bean: "account" in scope: "session"
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:937)
at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:225)
at org.apache.jsp.jsp.customerList_jsp._jspx_meth_bean_005fwrite_005f0(customerList_jsp.java:840)
at org.apache.jsp.jsp.customerList_jsp._jspService(customerList_jsp.java:125)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
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)
account是放在session里的全局对象,理论上来说只要登录就有该对象,且前几年一直正常。急求解决方案,在线等!3Q