[
https://issues.jboss.org/browse/RF-11953?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč edited comment on RF-11953 at 2/15/12 5:27 AM:
----------------------------------------------------------
Prepared two solutions for this issue:
1. made filter non-serializable and ServletContext stored in the filter state
https://github.com/richfaces/core/pull/4
2. left filter serializable and obtain ServletContext from request when needed
https://github.com/richfaces/core/pull/5
was (Author: lfryc):
Prepared two solutions for this issue:
1. made filter non-serializable and ServletContext stored in the filter state
https://github.com/richfaces/core/pull/5
2. left filter serializable and obtain ServletContext from request when needed
https://github.com/richfaces/core/pull/4
showcase - a4j:push - demos do not work on Tomcats
--------------------------------------------------
Key: RF-11953
URL:
https://issues.jboss.org/browse/RF-11953
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-push/poll, showcase
Environment: container: Tomcat 6.0.32
app: RichFaces showcase 4.2.0.CR1
Reporter: Juraj Huska
Assignee: Lukáš Fryč
Priority: Critical
Labels: regression
Fix For: 4.2.0.Final
The demos for a4j:push are not working at all. There is just error on firebug:
{code}
java.lang.RuntimeException: javax.servlet.ServletException: Throwable
org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:154)
org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:219)
org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:154)
org.atmosphere.container.BlockingIOCometSupport.service(BlockingIOCometSupport.java:89)
org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1217)
org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1176)
org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:1162)
org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:125)
</pre></p><p><b>root cause</b>
<pre>javax.servlet.ServletException: Throwable
org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:147)
org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:116)
org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:293)
org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:151)
org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:219)
org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:154)
org.atmosphere.container.BlockingIOCometSupport.service(BlockingIOCometSupport.java:89)
org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1217)
org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1176)
org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:1162)
org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:125)
</pre></p><p><b>root cause</b>
<pre>java.lang.NoSuchMethodError:
javax.servlet.ServletRequest.getServletContext()Ljavax/servlet/ServletContext;
org.richfaces.webapp.PushHandlerFilter.getSessionManager(PushHandlerFilter.java:123)
org.richfaces.webapp.PushHandlerFilter.doFilter(PushHandlerFilter.java:84)
org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:139)
org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:116)
org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:293)
org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:151)
org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:219)
org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:154)
org.atmosphere.container.BlockingIOCometSupport.service(BlockingIOCometSupport.java:89)
org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1217)
org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1176)
org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:1162)
org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:125)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira