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