Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java SpringWebFlow Jsf集成战争在Glassfishv3服务器中不起作用_Java_Spring_Jsf_Glassfish_Spring Webflow - Fatal编程技术网

Java SpringWebFlow Jsf集成战争在Glassfishv3服务器中不起作用

Java SpringWebFlow Jsf集成战争在Glassfishv3服务器中不起作用,java,spring,jsf,glassfish,spring-webflow,Java,Spring,Jsf,Glassfish,Spring Webflow,Spring站点中的Spring Webflow JSF intgration war example()文件在GlassfishV3服务器中不起作用。它在Tomcat6.0中工作。 在Glassfish中,它抛出以下异常 Caused by: java.lang.UnsupportedOperationException at javax.faces.context.FacesContext.getAttributes(FacesContext.java:141) at com.sun.f

Spring站点中的Spring Webflow JSF intgration war example()文件在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

我收到了一个类似的错误,你正在面临的某个时候回来。尝试用以下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

如果您仍然面临任何问题,请告诉我

我在webflow中使用JSF 20时看到了非常类似的问题。切换到JSF1.2有帮助。检查Tomcat和Glassfish中使用的JSF版本。