java web应用启动报错:Caused by: java.lang.ClassNotFoundException: ServletContext
ServletContext是个接口,不同的WEB容器(tomcat, jboss等)都有各自的实现。
一般是缺少servlet-api.jar包
在Java Build Path的Libraries中Add Library中选择Server Runtime添加一个运行时服务器包
ServletContext是个接口,不同的WEB容器(tomcat, jboss等)都有各自的实现。
一般是缺少servlet-api.jar包
在Java Build Path的Libraries中Add Library中选择Server Runtime添加一个运行时服务器包