Try to remove either
<servlet-mapping>
<servlet-name>test</servlet-name>
<url-pattern>/another/path</url-pattern>
</servlet-mapping>
or
@WebServlet("/another/path")
You should not mix the different ways of mapping servlet to URLs.
I'd also recommend to check whether pack.HelloWorld
and the class HelloWorld extends HttpServlet
are really the same.