我将 jsf 2.1 (mojara) 与 glassfish 3.1 一起使用,我的 web .xml 看起来像:
<welcome-file-list>
<welcome-file>NewFile.xhtml</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<context-param>
我收到此错误
2015-03-11T21:40:15.054+0530|警告:ApplicationDispatcher [/JSFProject] PWC1231:Servlet Faces Servlet 的 Servlet.service() 抛出异常 javax.servlet.ServletException:PWC1232:超过嵌套请求调度的最大深度:20 org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:772)