首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring Webflow Jsf集成war在Glassfishv3服务器中不起作用

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

Stack Overflow用户
提问于 2010-09-22 22:28:41
回答 1查看 807关注 0票数 0

spring站点中的Spring-Webflow JSF集成war示例(http://www.springsource.org/webflow-samples/spring-booking-faces.war)文件在GlassfishV3服务器中不起作用。它可以在Tomcat6.0中工作。在Glassfish中,它抛出以下异常

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2011-07-03 12:53:30

我收到了一个类似的错误,就像你之前遇到的一样。试着用下面的jar替换你的JSF jar,我猜它也在使用Primefaces。使用下面的jars组合

代码语言:javascript
复制
[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

如果您仍然面临任何问题,请让我知道

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3770264

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档