java.lang.ClassNotFoundException: javax.servlet.ServletContainerInitializer

后端 未结 5 829
被撕碎了的回忆
被撕碎了的回忆 2020-12-19 02:16

I was working on writing some servlets and they all worked fine Tomcat had no issue running what so ever. Then I wrote a class file that used JERSEY and when I tried to run

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 02:30

    Sometimes if you are running a Tomcat server in Eclipse, the local Tomcat working directory can get jacked up and you have to clear it explicitly. Note that this is NOT the same as doing a Clean build on the project: From the Servers window: Right click on the server you are trying to start->Clean Tomcat work Directory...->OK

提交回复
热议问题