我有一个使用“IceFaces”构建的用户界面。它部署在使用“LifeRay”构建的门户上。 UI应用程序有时会从门户网站自动取消部署。 并且日志显示以下错误消息:
javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: /main.jsp Not Found in ExternalContext as a Resource
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:175)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
-----------------
Caused by: java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: /main.jsp Not Found in ExternalContext as a Resource
at com.icesoft.faces.context.View.servePage(View.java:136)
at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:55)
------------------
Caused by: javax.faces.FacesException: Problem in renderResponse: /main.jsp Not Found in ExternalContext as a Resource
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:296)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
Caused by: java.io.FileNotFoundException: /main.jsp Not Found in ExternalContext as a Resource
at com.sun.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:121)
at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:91)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:268)
... 171 more
UI只有.xhtml
页面,没有jsp页面,所以我不知道它为什么要尝试渲染主.jsp
页面。
此外,在再次部署之后,它会在异常重新出现之前的一段时间内正常工作。
如果您能提供指向根本原因的指针或如何解决此问题,将不胜感激。
提前致谢
答案 0 :(得分:3)
您的web.xml中是否包含以下内容?
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>