servlet-api.jar I shifted this jar file from one system to the other.
But I get the following error like -jar not loaded. Offending class:javax/servlet/servlet.class when I start the tomcat server.
Kindly let me know what would be the cause for this error and how to resolve the same.
Tomcat version is 5.5 in the current system and my previous system.
The possible solution is that you might have another jar (like
servlet.jar) available in a WAR file under tomcat that conflicts withservlet-api.jar‘sServlet.class.Try and find out which WAR contains the jar and remove it.
For more, view an article here.