Announcement Announcement Module
No announcement yet.
Bookings Faces sample on WebSphere v8 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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: tHandlerExceptionResolver - Resolving exception from handler [[[email protected]]]: 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(
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(
    at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(
    at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(
    at org.springframework.faces.webflow.JsfFlowHandlerAd apter.handle(
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(
    at org.springframework.web.servlet.DispatcherServlet. doService(
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(
    at org.springframework.web.servlet.FrameworkServlet.d oPost(
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:595)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:668)
    at vice(
    at dleRequest(
    at dleRequest(
    at .handleRequest(
    at nvokeTarget(
    at oFilter(
    at org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal( :88)
    at org.springframework.web.filter.OncePerRequestFilte r.doFilter(
    at er.doFilter(
    at oFilter(
    at .doFilter(
    at .invokeFilters(
    at r.handleRequest(
    at (
    at st(
    at y(
    at nk.handleDiscrimination(
    at nk.handleNewRequest(
    at nk.processRequest(
    at llback.complete(
    at ner.futureCompleted( :165)
    at k(
    at Actions(
    at .java:138)
    at oop(
    at$ .java:905)
    at$ ava:1650)
    Caused by: java.lang.NullPointerException: state
    at javax.faces.component.UIComponentBase.restoreState (
    at javax.faces.component.UIComponentBase.processResto reState(
    at javax.faces.component.UIComponentBase.processResto reState(
    at javax.faces.component.UIComponentBase.processResto reState(
    at javax.faces.component.UIViewRoot.processRestoreSta te(
    at org.springframework.faces.webflow.FlowViewStateMan ager.restoreComponentState(FlowViewStateManager.ja va:78)
    at org.springframework.faces.webflow.FlowViewStateMan ager.restoreView(
    at org.apache.myfaces.shared_impl.view.ViewDeclaratio nLanguageBase.restoreView(ViewDeclarationLanguageB
    at org.apache.myfaces.view.facelets.FaceletViewDeclar ationLanguage.restoreView(FaceletViewDeclarationLa
    at org.apache.myfaces.application.ViewHandlerImpl.res toreView(
    at org.springframework.faces.webflow.FlowViewHandler. restoreFlowView(
    at org.springframework.faces.webflow.FlowViewHandler. restoreView(
    at org.springframework.faces.webflow.JsfViewFactory.g etView(
    at org.springframework.webflow.engine.ViewState.resum e(
    at org.springframework.webflow.engine.Flow.resume(Flo
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(
    ... 37 more

  • #2
    RTFM. Solved my problem. For future reference:
    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: