It appears that renaming a servlet class or moving it to a different package doesn’t cause the web.xml file to be updated. For example, if I create a class MyServlet in the package foo, this is added:
<servlet>
<servlet-name>MyServlet</servlet-name>
<display-name>My Servlet</display-name>
<description>What a servlet!</description>
<servlet-class>foo.MyServlet</servlet-class>
</servlet>
If I rename MyServlet to MyNewServlet, I would expect (perhaps incorrectly) that “foo.MyServlet” would be replaced with “foo.MyNewServlet” in the above code snippet. I would also expect “foo” to be replaced with “bar” if I moved the class to the bar package.