JAR File not getting loaded in Tomcat
servlet-api.jar
I shifted this jar file from one system to the oth开发者_开发百科er.
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 with servlet-api.jar
's Servlet.class
.
Try and find out which WAR contains the jar and remove it.
For more, view an article here.
It looks like servlet.class has dependancies that are not being met - probably in another .jar file.
精彩评论