Solved

Eclipse error on the Google App Engine web application

Posted on 2014-02-03
3
795 Views
Last Modified: 2014-02-14
I am trying to run the guestbook application https://developers.google.com/appengine/docs/java/gettingstarted/creating but getting error:

I tried it on Eclipse with the recent version. In Eclipse I click Run menu and then "Debug As"->"Web application". The error popup shows as attached.
Could you please suggest how to fix. Thank you.
errorversion
0
Comment
Question by:toooki
  • 2
3 Comments
 
LVL 12

Expert Comment

by:Sharon Seth
Comment Utility
Which web server are you using ? The error mostly points out that the server is not started in debug mode . Run it in normal mode and see
0
 

Author Comment

by:toooki
Comment Utility
If I run it via "Run"->"Run As"->"Web Application", I get the following error. I have IIS server installed on the pc.

Feb 04, 2014 9:21:16 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed C:\Users\workspace\Guestbook\war\WEB-INF/appengine-web.xml
Feb 04, 2014 9:21:16 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed C:\Users\workspace\Guestbook\war\WEB-INF/web.xml
Feb 04, 2014 9:21:16 AM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 'C:\Users\Downloads\eclipse-jee-kepler-SR1-win32-x86_64\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.8.9\appengine-java-sdk-1.8.9\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'C:\Users\workspace\Guestbook\war\WEB-INF\appengine-web.xml'
Feb 04, 2014 9:21:17 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Feb 04, 2014 9:21:18 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Feb 04, 2014 9:21:44 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed org.mortbay.jetty.nio.SelectChannelConnector$1@5a41ca05: java.io.IOException: Unable to establish loopback connection
Feb 04, 2014 9:21:44 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed SelectChannelConnector@127.0.0.1:8891: java.io.IOException: Unable to establish loopback connection
Feb 04, 2014 9:21:44 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed Server@1d192738: java.io.IOException: Unable to establish loopback connection
java.io.IOException: Unable to establish loopback connection
      at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source)
      at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.nio.ch.PipeImpl.<init>(Unknown Source)
      at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source)
      at java.nio.channels.Pipe.open(Unknown Source)
      at sun.nio.ch.WindowsSelectorImpl.<init>(Unknown Source)
      at sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown Source)
      at java.nio.channels.Selector.open(Unknown Source)
      at org.mortbay.io.nio.SelectorManager$SelectSet.<init>(SelectorManager.java:312)
      at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:314)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.Server.doStart(Server.java:235)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:250)
      at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:306)
      at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
      at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:79)
      at com.google.appengine.tools.development.Modules.startup(Modules.java:97)
      at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:255)
      at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
      at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
      at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
      at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
      at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
      at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:219)
      at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:210)
Caused by: java.net.ConnectException: Connection timed out: connect
      at sun.nio.ch.Net.connect0(Native Method)
      at sun.nio.ch.Net.connect(Unknown Source)
      at sun.nio.ch.Net.connect(Unknown Source)
      at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
      at java.nio.channels.SocketChannel.open(Unknown Source)
      ... 31 more
0
 
LVL 12

Accepted Solution

by:
Sharon Seth earned 500 total points
Comment Utility
Is this port open on your machine when the app is running - 8891? It is not getting a connection on that port on your PC
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now