报错:cannot be cast to javax.servlet.Servlet 原因以及解决办法:public class WageTaxServlet extends HttpServlet,加上紫色的部分。没有继承httpservlet 转载于:https://my.oschina.net/mkh/blog/73610