Solved

Eclipse error on the Google App Engine web application

Posted on 2014-02-03
3
848 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
ID: 39831877
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
ID: 39832703
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
ID: 39834932
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

815 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