Announcement Announcement Module
Collapse
No announcement yet.
webflow 2 sample project swf-booking-faces gives exception under Glassfish 3.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • webflow 2 sample project swf-booking-faces gives exception under Glassfish 3.1

    Hi,
    I am trying out Spring webflow sample project swf-booking-faces (Hotel Booking : Spring MVC + Web Flow + JSF/PrimeFaces from spring-webflow-2.3.0.RELEASE).
    It runs fine under Tomcat 7.0.14 but when I try to run it under Glassfish 3.1, I get the following exception when trying to access link "Start Your Spring Travel Experience" (basically the heart of the application):
    I assume there is probably clash of jars somewhere but not able to find where. As I stated, Tomcat is fine.

    java.lang.UnsupportedOperationException
    at javax.faces.context.FacesContext.isReleased(FacesC ontext.java:609)
    at com.sun.faces.context.PartialViewContextImpl.updat eFacesContext(PartialViewContextImpl.java:475)
    at com.sun.faces.context.PartialViewContextImpl.isAja xRequest(PartialViewContextImpl.java:108)
    at javax.faces.context.PartialViewContextWrapper.isAj axRequest(PartialViewContextWrapper.java:117)
    at javax.faces.context.PartialViewContextWrapper.isAj axRequest(PartialViewContextWrapper.java:117)
    at javax.faces.component.UIViewRoot.getRendersChildre n(UIViewRoot.java:1020)
    at javax.faces.component.UIComponent.encodeAll(UIComp onent.java:1755)
    at com.sun.faces.application.view.FaceletViewHandling Strategy.renderView(FaceletViewHandlingStrategy.ja va:401)
    at com.sun.faces.application.view.MultiViewHandler.re nderView(MultiViewHandler.java:131)
    at org.springframework.faces.webflow.FlowViewHandler. renderView(FlowViewHandler.java:99)
    at com.sun.faces.lifecycle.RenderResponsePhase.execut e(RenderResponsePhase.java:121)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 01)
    at com.sun.faces.lifecycle.LifecycleImpl.render(Lifec ycleImpl.java:139)
    at org.springframework.faces.webflow.FlowLifecycle.re nder(FlowLifecycle.java:80)
    at org.springframework.faces.webflow.JsfView.render(J sfView.java:90)
    at org.springframework.webflow.engine.ViewState.rende r(ViewState.java:296)
    at org.springframework.webflow.engine.ViewState.refre sh(ViewState.java:243)
    at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:221)
    at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:261)
    at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:169)
    at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:183)
    at org.springframework.faces.webflow.JsfFlowHandlerAd apter.handle(JsfFlowHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:790)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:719)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:644)
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:549)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:734)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:847)
    at org.apache.catalina.core.StandardWrapper.service(S tandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:217)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 343)
    at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:109)
    at org.springframework.security.web.access.intercept. FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:83)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.access.ExceptionT ranslationFilter.doFilter(ExceptionTranslationFilt er.java:97)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.session.SessionMa nagementFilter.doFilter(SessionManagementFilter.ja va:100)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.authentication.An onymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:78)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.servletapi.Securi tyContextHolderAwareRequestFilter.doFilter(Securit yContextHolderAwareRequestFilter.java:54)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.savedrequest.Requ estCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:35)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.authentication.ww w.BasicAuthenticationFilter.doFilter(BasicAuthenti cationFilter.java:177)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:188)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.authentication.lo gout.LogoutFilter.doFilter(LogoutFilter.java:105)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.context.SecurityC ontextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:79)
    at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    at org.springframework.security.web.FilterChainProxy. doFilter(FilterChainProxy.java:149)
    at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:237)
    at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:217)
    at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :88)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:217)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:595)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipel ine.java:98)
    at com.sun.enterprise.web.PESessionLockingStandardPip eline.invoke(PESessionLockingStandardPipeline.java :91)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:162)
    at org.apache.catalina.connector.CoyoteAdapter.doServ ice(CoyoteAdapter.java:330)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:174)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(P rocessorTask.java:828)
    at com.sun.grizzly.http.ProcessorTask.doProcess(Proce ssorTask.java:725)
    at com.sun.grizzly.http.ProcessorTask.process(Process orTask.java:1019)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtoc olFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:7 1)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doW ork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run (AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:662)

  • #2
    Hello

    use code tags, is more readable for us

    sadly the error stack trace is not useful

    I assume there is probably clash of jars somewhere but not able to find where. As I stated, Tomcat is fine.
    Could be, while I am reading a book about Core JavaServer Faces 3rd edition, the author advices us many times about some important consideration about jars dependencies for Tomcat and Glassfish. I recall that some jar files for JSF are already available for Glassfish meanwhile for Tomcat you must include

    I suggest you check carefully the jars for your project, perhaps a conflict exists, check too the log files of your Glassfish

    HTH

    Comment

    Working...
    X