Announcement Announcement Module
Collapse
No announcement yet.
Bookings Faces sample on WebSphere v8 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bookings Faces sample on WebSphere v8

    Has anyone had any luck getting the sample app "booking faces" (SWF + JSF) working on WebSphere v8? WebSphere uses it's own JSF implementations by default, so I removed the Sun RI dependencies. (Default is "MyFaces") Also, I commented out the security bits for now, but I get the following error:

    [11/8/11 9:52:56:958 CST] 0000001b SystemOut O DEBUG: org.springframework.web.servlet.mvc.support.Defaul tHandlerExceptionResolver - Resolving exception from handler [[FlowHandlerMapping.DefaultFlowHandler@1f97930]]: org.springframework.webflow.execution.FlowExecutio nException: Exception thrown in state 'enterSearchCriteria' of flow 'main'
    [11/8/11 9:52:56:963 CST] 0000001b SystemOut O DEBUG: org.springframework.web.servlet.DispatcherServlet - Could not complete request
    org.springframework.webflow.execution.FlowExecutio nException: Exception thrown in state 'enterSearchCriteria' of flow 'main'
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.wrap(FlowExecutionImpl.java:571)
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:265)
    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 oPost(FrameworkServlet.java:560)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:595)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1147)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:722)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:449)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl .handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.i nvokeTarget(WebAppFilterChain.java:125)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:92)
    at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :88)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapp er.doFilter(FilterInstanceWrapper.java:192)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.d oFilter(WebAppFilterChain.java:89)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .doFilter(WebAppFilterManager.java:919)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager .invokeFilters(WebAppFilterManager.java:1016)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:87)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:886)
    at com.ibm.ws.webcontainer.WSWebContainer.handleReque st(WSWebContainer.java:1655)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:195)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:452)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewRequest(HttpInboundLink.java:511)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.processRequest(HttpInboundLink.java:305)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:83)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1650)
    Caused by: java.lang.NullPointerException: state
    at javax.faces.component.UIComponentBase.restoreState (UIComponentBase.java:1703)
    at javax.faces.component.UIComponentBase.processResto reState(UIComponentBase.java:1385)
    at javax.faces.component.UIComponentBase.processResto reState(UIComponentBase.java:1428)
    at javax.faces.component.UIComponentBase.processResto reState(UIComponentBase.java:1428)
    at javax.faces.component.UIViewRoot.processRestoreSta te(UIViewRoot.java:731)
    at org.springframework.faces.webflow.FlowViewStateMan ager.restoreComponentState(FlowViewStateManager.ja va:78)
    at org.springframework.faces.webflow.FlowViewStateMan ager.restoreView(FlowViewStateManager.java:200)
    at org.apache.myfaces.shared_impl.view.ViewDeclaratio nLanguageBase.restoreView(ViewDeclarationLanguageB ase.java:106)
    at org.apache.myfaces.view.facelets.FaceletViewDeclar ationLanguage.restoreView(FaceletViewDeclarationLa nguage.java:1438)
    at org.apache.myfaces.application.ViewHandlerImpl.res toreView(ViewHandlerImpl.java:278)
    at org.springframework.faces.webflow.FlowViewHandler. restoreFlowView(FlowViewHandler.java:144)
    at org.springframework.faces.webflow.FlowViewHandler. restoreView(FlowViewHandler.java:83)
    at org.springframework.faces.webflow.JsfViewFactory.g etView(JsfViewFactory.java:105)
    at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:193)
    at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:261)
    ... 37 more

  • #2
    RTFM. Solved my problem. For future reference:

    http://static.springsource.org/sprin.../ch02s02.html:
    Note that partial state saving is only supported with Sun Mojarra 2.0.3 or later. It is not yet supported with Apache MyFaces. This is due to the fact MyFaces was not as easy to customize with regards to how component state is stored. We will work with Apache MyFaces to provide this support. In the mean time you will need to use the javax.faces.PARTIAL_STATE_SAVING context parameter in web.xml to disable partial state saving with Apache MyFaces.

    Added the following to my web.xml and it works great:
    <context-param>
    <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
    <param-value>false</param-value>
    </context-param>

    Comment

    Working...
    X