wood burning stoves 2.0*
The moose likes Struts and the fly likes Cannot find bean xxxxxxxxForm in any scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find bean xxxxxxxxForm in any scope" Watch "Cannot find bean xxxxxxxxForm in any scope" New topic
Author

Cannot find bean xxxxxxxxForm in any scope

Ven Ram
Greenhorn

Joined: Sep 15, 2003
Posts: 11
Dear All,

I am getting the below mentioned exception when i am repeatedly hitting the same screen. If i am not repeatedly hitting the screen things are fine....

Help me out to figure out the problem.

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

>send me the complete exception .......
[6/2/07 13:15:35:781 GST] 38591c27 WebGroup E SRVE0026E: [Servlet Error]-[Cannot find bean accountStatementForm in any scope]: javax.servlet.jsp.JspException: Cannot find bean accountStatementForm in any scope
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:992)
at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:227)
at org.apache.jsp._account_5F_statement._jspService(_account_5F_statement.java:466)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:662)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:969)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:965)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

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

Thanks,
Ven Ram
Lucas Sanabio
Greenhorn

Joined: Feb 19, 2005
Posts: 11
Hi. Have you find the solution to this problem? I'm getting the same error, after sometime, at my login page is throwing the exception that the loginForm cannot be found in any scope and until I restart the tomcat this error continues.

I have looked at logs if there is some memory lack problem, but there is nothing.


Lucas Sanabio<br />-----------------------------------------------------------------------------<br />Sun Certified Programmer for the Java 2 Platform<br />Consultor Java - Marx Tecnologia<br />Email: lucas@marx.com.br<br />URL: <a href="http://www.marx.com.br" target="_blank" rel="nofollow">http://www.marx.com.br</a><br />Cel: (62) 8117-5266
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
[Servlet Error]-[Cannot find bean accountStatementForm in any scope]:


It's telling you that it cannot find a bean by this name. Check your config files, actions, etc for wherever you are using this reference.

You may have this form associated with an action or missing this Form class defination in a config file. start by looking for this f=reference name in your code...
Lucas Sanabio
Greenhorn

Joined: Feb 19, 2005
Posts: 11
But what is weird is that it works just fine for sometime, after it, it starts throwing a error.
John Simpson
Greenhorn

Joined: Sep 10, 2007
Posts: 25
check the attributes of the accountForm object that its complaining about. Sometimes they have different meanings than one would expect.

Hope it helps.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot find bean xxxxxxxxForm in any scope