我想在JSF.I上創建一個簡單的程序,將它部署在JBOSS 5服務器上。但是當我嘗試運行它時,它會引發這些異常。在jsf中找不到面孔上下文
類型異常報告
消息描述服務器遇到一個內部錯誤(),從完成此請求防止 它。
例外 org.apache.jasper.JasperException:了java.lang.RuntimeException:無法找到 FacesContext的 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515) org.apache.jasper .servlet.JspServletWrapper.service(JspServletWrapper.java:411) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249 ) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
根源
了java.lang.RuntimeException:找不到的FacesContext javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855) javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase。的java:1672) org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:90) org.apache.jsp.index_jsp._jspService(index_jsp.java:67) org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322) org.apache.jasper.servlet.JspServlet.service (JspServlet.java:249) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
你可以請你發佈你的代碼?和你的文件夾結構。你在'WEB-INF/lib'中添加了哪些庫? – HashimR