I'm learning servlets and jsp and try to run my very first servlet. However when I try to access the servlet at http://localhost:8080/AppName/Lottery, but it doesn't work - I get a HTTP Status 404 - /AppName/ error. I can't figure out what's wrong. My servlet is inside a servlets package which is inside WEB-INF folder. I also have a web.xml file with name mapping. Any help is appreciated.