How do I "restart the server?" [message #509706] |
Sun, 24 January 2010 22:36  |
Eclipse User |
|
|
|
Hello all. I am new to Eclipse and equally new to developing Google App Engine applications. I am currently working on the examples that Google provides and am finding myself running into a problem. When I run (or debug) my app as a web application, it works fine the first time. If I attempt to run (or debug) it a second time, I get an error stack trace that tells me that the address or port (or both) are not available. If I exit Eclipse and re-enter, then re-run/debug my app, all works fine. It is the second and/or subsequent times that I want to run the app that I get the error.
I am guessing that, for whatever reason, when I run my app, the server that is supporting that app is still running even after the app has done whatever it is supposed to do. What I want to do is be able to make changes to the code and run it again to see what the changes do.
I have searched the help that comes with Eclipse as well as here on the forums, in the Eclipse knowledgebase, and some general Google searches as well. I see lots of advice about "just restart the server," but no actual step-by-step instructions on how to do so (Go to this menu/button, click this, do that, viola!). This tells me that it must be something so basic that I am totally missing it, but after a day of poking at various menus, options, toolbars, tabs, buttons, etc., and still not finding it, I am ready to ask for help.
For what it is worth, this is the error I am getting.
Jan 25, 2010 3:23:55 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed SelectChannelConnector@127.0.0.1:8888
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:211)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:309)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:188)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:120)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:217)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
Jan 25, 2010 3:23:55 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed Server@1484a05
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:211)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:309)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.Server.doStart(Server.java:228)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:188)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:120)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:217)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)
************************************************
Could not open the requested socket: Address already in use: bind
Try overriding --address and/or --port. Any pointers would be appreciated. Thank you.
|
|
|
|
Re: How do I "restart the server?" [message #521976 is a reply to message #509706] |
Fri, 19 March 2010 09:33  |
Eclipse User |
|
|
|
Il 25/01/2010 4.36, mitchell@winhack.com ha scritto:
> I have searched the help that comes with Eclipse as well as here on the
> forums, in the Eclipse knowledgebase, and some general Google searches
> as well. I see lots of advice about "just restart the server," but no
> actual step-by-step instructions on how to do so (Go to this
> menu/button, click this, do that, viola!). This tells me that it must be
> something so basic that I am totally missing it, but after a day of
> poking at various menus, options, toolbars, tabs, buttons, etc., and
> still not finding it, I am ready to ask for help.
In the Server view, right click on your server and hit "Restart".
Otherwise you the corresponding button in the Server view toolbar.
Mauro.
|
|
|
Powered by
FUDForum. Page generated in 0.03047 seconds