title: HTTP ERROR: 503 Google App Engine - Closed
body: <p>I'm trying to run an app on Google app Engine (app is using maven) so I run the following:</p>
  
  <pre><code>mvn appengine:update
  </code></pre>
  
  <p>which returns: </p>
  
  <pre><code>...
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 31.239 s
  [INFO] Finished at: 2017-01-12T11:04:35-05:00
  [INFO] Final Memory: 21M/422M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>And then</p>
  
  <pre><code>mvn appengine:devserver
  </code></pre>
  
  <p>which returns </p>
  
  <pre><code>...
  [INFO] INFO: The admin console is running at http://localhost:8080/_ah/admin
  [INFO] Jan 12, 2017 11:06:05 AM com.google.appengine.tools.development.DevAppServerImpl doStart
  [INFO] INFO: Dev App Server is now running
  </code></pre>
  
  <p>So I think the build is properly updating, also I could deploy it successfully online.</p>
  
  <p>But I still get the error at my_project.appspot.com</p>
  
  <p><a href="https://i.stack.imgur.com/0bjdI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0bjdI.png" alt="ERROR: Server Error"></a></p>
  
  <p>and locally when I try to run the same app I get (Either running the server with mvn appengine:devserver or running it on eclipse does the same tried both for testing reasons):</p>
  
  <p><a href="https://i.stack.imgur.com/cZc2z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cZc2z.png" alt="HTTP ERROR: 503"></a></p>
  
  <p>I was guessing maybe my web.xml has a mistake in it but I double checked and compared it to the HelloWorldServlet example or Guest Book example and it looks pretty much the same, here it is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"&gt;
    &lt;servlet&gt;
      &lt;servlet-name&gt;AdWords&lt;/servlet-name&gt;
      &lt;servlet-class&gt;MyApp.adwords_axis.MainApp&lt;/servlet-class&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;AdWords&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>Also here's the class I'm trying to call</p>
  
  <pre><code>package myApp.adwords_axis;
  
  import java.io.IOException;
  import javax.servlet.annotation.WebServlet;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  @SuppressWarnings("serial")
  @WebServlet(name = "AdWords", value = "/")
  public class MainApp extends HttpServlet{
        @Override
        public void doGet(HttpServletRequest request, HttpServletResponse response)
        {
        response.setContentType("text/plain");
        try {
          response.getWriter().println("Test");
          //run();
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }  
  
        }
  
  
      public static void run() throws Exception {
          AdReport ads = new AdReport();
          GenderReport genderReport = new GenderReport();
          CriteriaReport criteriaReport = new CriteriaReport();
  
          ads.start();
          genderReport.start();
          criteriaReport.start();
      }
      //Add Audience before deploying beta.
  }
  </code></pre>
  
  <p>The app.yaml (which was never generated when I did <code>mvn appengine:update</code>) that I coppied from the examples and dropped it under src/main/appengine looks like this:</p>
  
  <pre><code>runtime: java
  env: flex
  
  handlers:
  - url: /.*
    script: this field is required, but ignored
    secure: always  # Require HTTPS
  
  runtime_config:  # Optional
    jdk: openjdk7
    server: jetty9
  
  manual_scaling:
    instances: 1
  </code></pre>
  
  <p>What am I missing?</p>