2010-09-22 13 views
0

來自Spring站點的Spring-Webflow JSF集成戰爭示例文件(http://www.springsource.org/webflow-samples/spring-booking-faces.war)在GlassfishV3服務器中不起作用。它在Tomcat6.0中工作。 GlassFish中,它拋出Spring Webflow Jsf集成戰爭在Glassfishv3服務器中不起作用

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 
+0

我看到了非常類似的問題,當我用JSF 20 Webflow的。切換到JSF 1.2有所幫助。檢查在Tomcat和Glassfish中使用的JSF版本。 – 2010-10-07 11:19:56

回答

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 

請讓我知道如果你仍然遇到任何問題

相關問題