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

发布于 2024-09-24 15:26:47 字数 1193 浏览 1 评论 0原文

Spring-Webflow JSF 集成战争示例(http://www.springsource. org/webflow-samples/spring-booking-faces.war) 来自 spring 站点的文件在 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

Spring-Webflow JSF intgration war example(http://www.springsource.org/webflow-samples/spring-booking-faces.war) file from spring site is not working in GlassfishV3 server. It works in Tomcat6.0.
In Glassfish, It throws following exception

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白况 2024-10-01 15:26:47

我收到了您之前遇到的类似错误。尝试用以下 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

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

I received a similar error that you are facing sometime back . Try replacing your JSF jars with the following jars.I guess it is using Primefaces too . Use following combination of jars

[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

Please let me know if you still face any problem

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文