Why do I get the 404 error message "The requested resource is not available"?

or "The requested object does not exist on this server"?

If you get either of these errors on a servlet, check the servlet's entry in the web.xml. The entry should be similar to the following:


The name can be any name as long as it is the same in both mappings. The class must be the fully qualified class name. The pattern must be a pattern that matches the URI that invokes the servlet. In this case, the pattern matches the URI =http://localhost:8081/MyServlet=.

Applies to: NetBeans 5.0, 5.5, 6.0, 6.1, 6.5, 6.7

Platforms: All

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo