Spring Webflow Jsf集成战在Glassfishv3服务器中不起作用

时间:2010-09-22 14:28:41

标签: java spring jsf glassfish spring-webflow

来自Spring站点的Spring-Webflow JSF集成战争示例(http://www.springsource.org/webflow-samples/spring-booking-faces.war)文件在Glassfish 3服务器中不起作用。它适用于Tomcat6.0。 在Glassfish中,它抛出异常

Caused by: java.lang.UnsupportedOperationException
 at javax.faces.context.FacesContext.getAttributes(FacesContext.java:141)
 at com.sun.faces.util.RequestStateManager.get(RequestStateManager.java:194)
 at com.sun.faces.util.Util.getFacesMapping(Util.java:564)
 at com.sun.faces.application.view.MultiViewHandler.derivePhysicalViewId(MultiViewHandler.java:483)
 at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:142)
 at org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:77)
 at org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:97)
 at org.springframework.webflow.engine.ViewState.resume(ViewState.java:198)
 at org.springframework.webflow.engine.Flow.resume(Flow.java:551)
 at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:263)
 ... 40 more

1 个答案:

答案 0 :(得分:1)

我收到了一个类似的错误,你有时会回来。尝试用以下jar替换你的JSF jar。我猜它也使用了Primefaces。使用以下罐子组合

[INFO] +- com.sun.faces:jsf-api:jar:2.0.3-b05:compile
[INFO] +- com.sun.faces:jsf-impl:jar:2.0.3-b05:runtime
[INFO] +- org.primefaces:primefaces:jar:2.2.RC2:compile

如果您仍然遇到任何问题,请告诉我