Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 977
  • Last Modified:

Eclipse error on the Google App Engine web application

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
toooki
Asked:
toooki
  • 2
1 Solution
 
Sharon SethCommented:
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
 
toookiAuthor Commented:
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
 
Sharon SethCommented:
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now