java.lang.RuntimeException: Cannot find FacesContext
Some time we may receive the below exception while accessing the JSF pages.java.lang.RuntimeException: Cannot find FacesContext
at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:2122)
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1933)
at jsp_servlet.__employeedetails._jsp__tag0(__employeedetails.java:135)
at jsp_servlet.__employeedetails._jspService(__employeedetails.java:110)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
The issue is due to the faces servelet has not been initialized.
The cause is the URL used to access the page is wrong like
http://10.136.211.120:7001/ADF_OSR-ViewController-context-root/EmployeeDetails.jsp
The URL should be like
http://localhost:7001/ADF_OSR-ViewController-context-root/faces/EmployeeDetails.jsp
thank you, that solved my issue.
ReplyDelete