views:

39

answers:

2

I just started learning about servers, and I am messing around with Google's App Engine. I am trying to get through App Engine's tutorial located here using Eclipse on Mac, but I am getting a problem that reads:

Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /Users/ayanonagon/Desktop/Venmo/iPhoneApplication/Guestbook/war/WEB-INF/appengine-web.xml
Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /Users/ayanonagon/Desktop/Venmo/iPhoneApplication/Guestbook/war/WEB-INF/web.xml
Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed [email protected]:8888: java.net.BindException: Address already in use
Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed Server@3d484a8a: java.net.BindException: Address already in use

************************************************
Could not open the requested socket: Address already in use
Try overriding --address and/or --port.

I've tried searching the problem, and no, the red square in the console view is not red. It might somehow be a Mac problem, since my friend who is also going through the tutorial is not getting any problems. Maybe something to do with localhost:8888?

+3  A: 

This means you either have another instance running on the port or you have another prgram listening on the port. What else do you have on port 8888 ?

If you want to customize how the server is started, you can create a new Run/Debug configuration of the type "Web Application." in eclipse or change the existing one you have.

Romain Hippeau
It seems to be that I have something called guestbook2, which I thought I got rid of but cannot locate.
ayanonagon
@ayanonagon Kill it and then try GAE again. Or change the port for GAE as I indicated
Romain Hippeau
I just searched "guestbook" on my computer and got rid of everything that could be interfering. It seems to be working now. Thank you!!!
ayanonagon
A: 

You most likely have a previous instance running (check the console selection button, or just File -> Restart)

The error means that the web server could not bind to the port (like 8080, or 80) it was told to because another program already has bound itself to it.

Thorbjørn Ravn Andersen
It is possible that a program that I moved to the trash and got of could still be bound to it? And if so, is there a way to unbind them?
ayanonagon
most likely not - I do not believe Windows permits throwing running programs in the Trash. Try restarting Eclipse.
Thorbjørn Ravn Andersen