0 Replies Latest reply on Dec 9, 2009 4:53 AM by nikhild

    ClassCastException while Integrating Spring SWF portlet with

    nikhild

      Hi ,

      I am using Jboss Portal 2.7 and Spring WebFlow 2.0

      While integrating Spring sample portal with Jboss portal it gives error below,

      java.lang.ClassCastException: org.jboss.portal.portlet.impl.jsr168.api.PortletContextImpl cannot be cast to javax.servlet.ServletContext
      at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:108)
      at org.jboss.portletbridge.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:195)
      at org.springframework.faces.webflow.FlowFacesContext.newInstance(FlowFacesContext.java:69)
      at org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:70)
      at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:179)
      at org.springframework.webflow.engine.State.enter(State.java:194)
      at org.springframework.webflow.engine.Flow.start(Flow.java:535)
      at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:364)
      at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:222)
      at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)
      at org.springframework.webflow.mvc.portlet.FlowHandlerAdapter.startFlow(FlowHandlerAdapter.java:235)
      at org.springframework.webflow.mvc.portlet.FlowHandlerAdapter.startFlow(FlowHandlerAdapter.java:228)
      a

      Does any one have a solution for this?