Hello,
Try changing the
@webservlet
annotation as shown below if you want your servlet to request with an extra path
@webservlet(urlPatterns = {"/simpleservlet/*"})
OR as shown below to listen to exact path
@webservlet(urlPatterns = {"/simpleservlet"})
Also make sure the webapp's web.xml has been declared to conform Servlet 3.0 spec.
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
Regards,