CDV ❯ HTTP ERROR 500 running Townsend and Tasklist Sample Apps using OSX
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Fixed
-
-
-
qa
-
Reporter: foshea
-
November 29, 2010
-
0
-
Watchers: 2
-
February 05, 2013
-
February 05, 2013
Description
From tc-users list
Subject: [tc-users] 3.4 on OSX: web sessions examples don’t work out-of-the-box
Reply-To: [email protected]
Hi!
I just followed the simple steps at http://www.terracotta.org/start/web-sessions-tutorial . But while it instantly works on gentoo I fail on OSX (10.6.5, Java 1.6.0_22):
For townsend and tasklist I get
HTTP ERROR 500
Problem accessing /Townsend/display.jsp. Reason:
Cannot find bean: “displayUserListForm” in any scope Caused by:
javax.servlet.jsp.JspException: Cannot find bean: “displayUserListForm” in any scope at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:934) at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:225) at org.apache.jsp.display_jsp._jspx_meth_bean_write_0(org.apache.jsp.display_jsp:352) at org.apache.jsp.display_jsp._jspService(org.apache.jsp.display_jsp:136) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at com.terracotta.session.SessionFilter.doHttpFilter(SessionFilter.java:81) at com.terracotta.session.SessionFilter.doFilter(SessionFilter.java:65) at org.terracotta.session.BaseExpressSessionFilter.doFilter(BaseExpressSessionFilter.java:44) at org.terracotta.session.TerracottaJetty61xSessionFilter.doFilter(TerracottaJetty61xSessionFilter.java:14) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1139)
In case of cart for every click a new session is created, so apparently in any case session replication simple doesn’t work. Found nothing suspicious in the logs either.
Comments
Fiona OShea 2010-11-29
Tim Eck 2010-11-29
I know I’ve seen an exception like that before.
Do you know what URL you requested in the browser? I’m pretty sure if you go immediately to “/Townsend/display.jsp” it will throw that exception. If the first request is instead made to “/Townsend/” I think it might avoid that. If so the problem is with the application/jsp code (as opposed to the session clustering)
Kalai Kannaiyan 2010-11-29
Tried with MAC OS version 10.6 with jdk1.6.0_15, followed the web-sessions-tutorial instructions, http://www.terracotta.org/start/web-sessions-tutorial, townsend sample works fine, when you hit http://localhost:9081/Townsend
Also tried Tim’s scenario,
When you hit http://localhost:9081/Townsend/display.jsp for the first time, I am getting this exception
HTTP ERROR 500
Problem accessing /Townsend/display.jsp. Reason:
Cannot find bean: "displayUserListForm" in any scope
Caused by:
javax.servlet.jsp.JspException: Cannot find bean: “displayUserListForm” in any scope at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:934) at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:225) at org.apache.jsp.display_jsp._jspx_meth_bean_write_0(org.apache.jsp.display_jsp:353) at org.apache.jsp.display_jsp._jspService(org.apache.jsp.display_jsp:137) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at com.terracotta.session.SessionFilter.doHttpFilter(SessionFilter.java:81) at com.terracotta.session.SessionFilter.doFilter(SessionFilter.java:65) at org.terracotta.session.BaseExpressSessionFilter.doFilter(BaseExpressSessionFilter.java:44) at org.terracotta.session.TerracottaJetty61xSessionFilter.doFilter(TerracottaJetty61xSessionFilter.java:14) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1139) at org.mortbay.jetty.servlet.ServletHandler.handle(Se
Fiona OShea 2010-11-29
The tutorial doesn’t have any reference that I can find to display.jsp So I think that is fine. No updates required. Thanks for checking.
Can you try to reproduce this one? thanks