JSF navigation error because of invalid path in faces config

javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)     at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)

A continuous and erratic error you would see on the console of this title might come across your JSF development once in a while.

Also you may see the browser is taking long while this error happens.

It has to do with navigation in the faces-config.xml file. in my case, I had forgotten to add the forward slash in front of my file – that is

   <navigation-case>
     <from-outcome>hint</from-outcome>
     <to-view-id>/index.jsp</to-view-id>
   </navigation-case>

The above is snippet from the faces-config.xml file. As you can see, the index.jsp file is without the forward slash – That was the problem

Happy JSFing.