Ayaka Nonaka Ayaka Nonaka - 5 months ago 56
Java Question

Google App Engine: WARNING: failed Server@3d484a8a: java.net.BindException: Address already in use

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 SelectChannelConnector@127.0.0.1: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?

Answer

This means you either have another instance running on the port or you have another program 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.