Tomcat is unable to find my Servlet and is throwing exceptions, but why?

前端 未结 5 721
野的像风
野的像风 2021-01-11 18:48

I\'m trying to get into Java web development but seem to be running into a strange issue with Tomcat and an extremely simple servlet. The catalina log is spewing this every

5条回答
  •  悲哀的现实
    2021-01-11 19:31

    Few hints:

    • Does your servlet class extend HttpServlet?
    • How about filesystem rights - any possible problem there?
    • Perhaps, try also to move the class to a named package (myservlet.MyServlet)

    In general, also try to look for more exceptions in the logs.

提交回复
热议问题