simple google app engine sample gives HttpServlet not found

So I'm trying to run a particular google app engine sample on IntelliJ and I'm getting an error that says :


error: cannot access HttpServlet
class file for javax.servlet.http.HttpServlet not found


Two more errors show after this which is mostly because of this above error.

Here is what it looks like:
screenie.png
I also added this to the .classpath file:

<classpathentry kind="output" path="war/WEB-INF/lib"/>

That folder is supposed to have all the required libraries, but no luck.

Is it a core java class that is part of the JDK or something?

Excuse my ignorance I'm new to java/app-engine on the whole :)

Gideon

3 comments
Comment actions Permalink

This class is part of servlet-api.jar which is usually located in an application server installation. In order to compile the project you need to add
this jar to the module dependencies list. Open File | 'Project Structure', select the module node, open 'Dependencies' tab, press '+' -> 'Library' and
choose an appropriate 'AppEngine Dev' item under 'Application Server Libraries' node.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Awesome! It builds.

One small problem, I can't seem the run the thing! When I click RUN it gives me a little dropdown that says edit configurations.

I open the configutation pages and everything looks good under Google App Engine Dev?

Thanks
Gideon

0
Comment actions Permalink

The nodes shown under 'Defaults' in 'Run/Debug Configurations' dialog cannot be used to run the project, they are used as templates for new
configurations. To run the AppEngine server you need to create a configuration using '+' button.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.