I have a very strange problem.
I am having an empty jsp page with no controls placed on it and just the <f:view> and <h:form> tags placed on the page and also had them closed properly.(and also all the tagllibs declared properly)
Tomcat is giving me an error saying java.lang.NullPointerException
and so much more to add to the error....
I wonder why it is giving such an error......
somebody please come up with a suggestion to eliminate the error...
1. tomcat5.0 with web services capability.
2. jsf 1.1 maintenance release
I accessed the jsf page using http://yourserver:8080/test/faces/yourpage.jsp.
If you directly access the page without going through the faces servlet, you will get a "Cannot find FacesContext" exception.
Originally posted by B.Jyothi:
sorry but I did not get you....
If u are talking about the browser url then it would be
and soon as this is typed it looks for the welcome page and sees the jsf tags in thepage such as f:view and it is giving the null pointer exception as i have mentioned earlier.
You got me right. If your welcome page has *.jsp extension, the exception is expected. The jsf pages (pages that contain jsf tags) cannot call directly without Faces Servlet Mapping.