I am getting the following error when running a basic servlet on Eclipse Kepler (Windows 7) with GAE SDK 1.9.3 and Java 7:
java.lang.NoClassDefFoundError: javax.servlet.http.HttpServlet is a restricted class.
Please see the Google App Engine developer's guide for more details.
To reproduce:
- install Java 7 SDK
- install Kepler
- install the GAE Eclipse plugin
- create a GAE web project
- implement the init method of a basic servlet and set
load-on-startup
to1
inweb.xml
- then run the web application
I tried on 2 machines and I got the same error.