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

前端 未结 5 841
野的像风
野的像风 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:16

    Well, given the updated information, it appears that your problem is that the compiler you used for your class is potentially a newer version of the JDK than the one running Tomcat.

    Check the JDK version being used to start Tomcat, and then see if you can do something to reconcile the version differences between that and the one you're using to compile your servlet with.

    That should clear up your issue.

提交回复
热议问题