title: How do I create a new Google App Engine project in IntelliJ 12 which works?
body: <p>I'll begin by saying that I have no prior GAE experience - I'm trying to get GAE working in IntelliJ 12 but having issues, was wondering if anyone could have a look over what I'm doing and tell me if there's anything wonky here.</p>
  
  <p>Steps:</p>
  
  <ol>
  <li><p>Create Java project in IntelliJ with JDK 1.7.0_51. Click Next. </p></li>
  <li><p>Select <code>Web Application &gt; Google App Engine</code> on desired techs page
      with path to <code>appengine-java-sdk-1.8.9</code>. Click Finish.</p></li>
  <li>Copy files from <code>appengine-java-sdk-1.8.9/demos/new_project_template/</code> to project
      directory</li>
  </ol>
  
  <p>I now have a main directory structure like:</p>
  
  <pre>
  .
  ├── COPYING
  ├── build.xml
  ├── html
  │   └── index.html
  ├── src
  │   ├── META-INF
  │   │   └── jdoconfig.xml
  │   ├── WEB-INF
  │   │   ├── appengine-web.xml
  │   │   └── web.xml
  │   ├── log4j.properties
  │   ├── logging.properties
  │   └── org
  │       └── example
  │           └── HelloAppEngineServlet.java
  ├── test.iml
  └── web
      ├── WEB-INF
      │   ├── appengine-web.xml
      │   └── web.xml
      └── index.jsp
  </pre>
  
  <p>Running this will run the webserver with the index.jsp in the web directory. </p>
  
  <p>A few questions around this - should there be a 'web' and an 'html' directory?  Why are there two WEB-INF directories and should they both be the same?  Should I manually edit both of them each time I update one?</p>
  
  <p>If I then follow the instructions at <a href="https://developers.google.com/appengine/docs/java/gettingstarted/creating" rel="nofollow">https://developers.google.com/appengine/docs/java/gettingstarted/creating</a> it mentions a 'war' folder - I confess that I'm confused about the 'war', 'web' and 'html' folders - I think somewhere I've also seen referenced a 'www' folder.  Do these folder names actually matter?</p>
  
  <p>Following the tutorial I create a guestbook folder within the 'src' folder and make the java file.  When I enter the info in the web.xml (both of them) I get an error for the line </p>
  
  <pre><code>&lt;servlet-name&gt;guestbook&lt;/servlet-name&gt;
  </code></pre>
  
  <p>"A field of identity constraint 'web-app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type"</p>
  
  <p>To top that off -  guestbook.GuestbookServlet doesn't resolve.</p>
  
  <p>There has to be a simpler way of getting this running in Intellij - can anyone help me? </p>