Error: Servlet Jar Not Loaded... Offending Class: Javax/Servlet/Servlet.Class

Servlet jar not loaded Tomcat Issue

Have you looked at the relevant chapter of the servlet spec? It says:

It must not allow the WAR to override J2SE or Java servlet API
classes.

In other words, you should not be providing servlet.jar in your webapp as it is already shipped with Tomcat. Remove it from your .war and restart Tomcat.

validateJarFile(servlet-api.jar) - jar not loaded in tomcat using eclipse

The error you are getting is because servlet-api needs to be on compile time build path, at runtime your app will have the servlet-api available from tomcat/lib

So add it to your build path simply, In short servlet-api is required at compile aswell as runtime

Tomcat: Offending class: javax/servlet/Servlet.class then timeout

I finally found the solution, which was not a tomcat issue. There was actually nothing wrong in the tomcat logs, but I found somethig in the app logs.
At the end, all of this was just because of some distant virtual machine being down and used by some part of code I didn't work on.

Thanks for your replies.



Related Topics



Leave a reply



Submit