0

I've been trying some things in tomcat and suddenly got a status code 404 for all of my JSPs and Servlets.I am getting this error :

11-Jun-2018 17:40:57.528 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [com.example.model.MySessionListener]
java.lang.ClassNotFoundException: com.example.model.MySessionListener
at .....

11-Jun-2018 17:40:57.528 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Skipped installing application listeners due to previous error(s)

I had a HttpSessionListener,but after this error occurred i've deleted , but the error is still there(after restarting and deleting log files).Why does the tomcat still ask for the HttpServletListener if i deleted it?How can i fix this?

LMC
  • 10,453
  • 2
  • 27
  • 52
Barracuda
  • 477
  • 5
  • 19

1 Answers1

0

If you have made sure there are no references to com.example.model.MySessionListener, try performing a clean on the tomcat server to remove any possible references to the class. Also try removing and re adding the war file.

Preston
  • 308
  • 6
  • 14
  • What do you mean by "clean"?How do i do that? – Barracuda Jun 11 '18 at 19:27
  • If you are using Tomcat in an IDE like eclipse, you can right click on your server (in the servers tab) and select "clean". You can also look here https://stackoverflow.com/a/29273052/7101216 for steps via command line. – Preston Jun 12 '18 at 19:23