Unfortunately, you are still having a problem. By placing code under the servlet examples, you are actually making use of the
dreaded Invoker Servlet.
This unfortunate invention, which was intended to make it easy for beginners, lets you get away with servlet classes not defined in a package. Thus failing when you attempt to deploy anywhere but the examples.
See numerous examples in this forum history.
Bill