java.lang.UnsupportedOperationException at javax.faces.context.FacesContext.isReleased(FacesContext.java:609)

喜欢而已 提交于 2019-12-05 20:54:58
BalusC

Some facts:

  • According to the appearance of Tomcat specific classes in the stacktrace in your other question you're using Tomcat.
  • According to the appearance of the JSF 2.1 introduced FacesContext#isReleased() method in the stacktrace in your current question, you're using JSF 2.1.
  • According to the answer in your other question, you're probably using Mojarra 2.1.0.
  • Mojarra 2.1.0 does not work in Tomcat/Jetty due to a major mistake of accidently introducing Glassfish specific code in the annotation scanning implementation for containers which does not ship with builtin annotation scanners.

So, to solve this problem there are several options:

  • Downgrade to Mojarra 2.0.5.
  • Upgrade to Mojarra 2.1.1.
  • Replace Tomcat by Glassfish 3, JBoss AS 6 or something else.

Are you using Tomcat? If so, revert back JSF version from 2.1.0 to the latest 2.0.x stable release, according to this thread.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!