I have created web application using JSF 2.0. I have created one Session bean where I am keeping id of the employee who is logged in.
The problem is when I do some changes in coding and restart tomcat online, I get Null Pointer exception (IF I have not logged out of the system. If I logged out of system, I don't get null pointer exception). To overcome this, I have to clear the history of the browser and the problem get solved.
Below are the steps I follow for project to make online.
- Do changes in code
- Copy war files to my VPS
- shutdown tomcat
- remove ROOT folder
- change the war file name to ROOT.war
- start the tomcat again
Please suggest me what to do....