0

Spring サイトの Spring-Webflow JSF 統合戦争の例 ( http://www.springsource.org/webflow-samples/spring-booking-faces.war ) ファイルが GlassfishV3 サーバーで機能しません。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
4

1 に答える 1

1

あなたが直面している同様のエラーを受け取りました。JSF jar を次の jar に置き換えてみてください。Primefaces も使用していると思います。次のjarの組み合わせを使用してください

[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

それでも問題が発生する場合はお知らせください

于 2011-07-03T04:53:30.170 に答える