Why is the servlet API jar not included with Web facet?

Whenever I want to create a simple Servlet project, I have to manually add the servlet-api.jar file to the classpath. Why is this necessary? I can right-click on the src directory and the pop-up menu includes an option to create a new servlet. However, when I do, I always get a "package javax.servlet.http does not exist" error until I manually add the servlet API dependency. It seems to me that if I indicate that the module requires a web application facet, the servlet API should be included as a dependency automatically. Am I missing something?

Please sign in to leave a comment.