cannot be cast to javax.servlet.Servlet 阅读更多 关于 cannot be cast to javax.servlet.Servlet 报错:cannot be cast to javax.servlet.Servlet 原因以及解决办法:public class WageTaxServlet extends HttpServlet ,加上紫色的部分。没有继承httpservlet 来源: oschina 链接: https://my.oschina.net/u/193046/blog/33383