title: accessing /gcm-demo/sendAll. Reason: HTTP Status Code: 401
body: <p>i am getting the following Error when i try to send a Message:</p>
  
  <pre><code>HTTP ERROR 500
  
  Problem accessing /gcm-demo/sendAll. Reason:
  
  HTTP Status Code: 401
  Caused by:
  
  com.google.android.gcm.server.InvalidRequestException: HTTP Status Code: 401
  at com.google.android.gcm.server.Sender.sendNoRetry(Sender.java:177)
  at com.google.android.gcm.server.Sender.send(Sender.java:121)
  at com.google.android.gcm.demo.server.SendAllMessagesServlet.doPost(SendAllMessagesServlet.java:82)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
  at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  at org.mortbay.jetty.Server.handle(Server.java:326)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
  at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
  Powered by Jetty://
  </code></pre>
  
  <p>I am using the Android Example Project as told here: <a href="http://developer.android.com/guide/google/gcm/demo.html" rel="nofollow">http://developer.android.com/guide/google/gcm/demo.html</a></p>
  
  <p>Can somebody help me out? Where is this error coming from?</p>
  
  <p>I am using Jetty on a Linux machine and compiling it to a .war on a Windows Machine using Apache Ant...</p>