Port 127.0.0.1:8888 is already is use

5,369 views
Skip to first unread message

Daisy

unread,
Mar 6, 2011, 5:35:25 AM3/6/11
to Google AJAX APIs
Greetings All;

I have used this demo

http://code.google.com/p/gwt-google-apis/source/browse/trunk/language/samples/hellolanguage/src/com/google/gwt/language/sample/hellolanguage/client/HelloLanguage.java?r=1416

in eclipse (I have imported into my workspace, add jars and
libraries).

but when i run it it gives this error:
-------------------
Starting Jetty on port 8888
[WARN] failed SelectChann...@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:
205)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
304)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
[WARN] failed Server@1e4fc66
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:
205)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
304)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
[ERROR] shell failed in doStartupServer method
Port 127.0.0.1:8888 is already is use; you probably still have another
session active
------------------------------

I don't know how to solve it or how to change this port?

Would you help me?

Regards;

Joel Rives

unread,
Mar 6, 2011, 10:57:50 AM3/6/11
to google-ajax...@googlegroups.com
You should probably start by identifying what is using port 8888. How you do that depends on what OS you are using. If you are on Mac OS X, there is a built-in utility tool called Network Utility it can be found in the /Applications/Utility folder. For Windows or Linux there is a free tool called Nmap, which has a graphical front-end called Zenmap.

Of course, a quick and dirty approach would be to reboot your computer and hope that whatever was using port 8888 does not get launched automatically.

Joel

> --
> You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax...@googlegroups.com.
> To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
>

1537 News

unread,
Mar 6, 2011, 12:28:37 PM3/6/11
to google-ajax...@googlegroups.com

Daisy

unread,
Mar 7, 2011, 9:18:21 AM3/7/11
to Google AJAX APIs
Thank you all for your help, it really makes benefit to me.

I think that I had had a conflict about servers on my machines and
thus there was a conflict in listening ports.

Regards;
Reply all
Reply to author
Forward
0 new messages