title: starting FedoOne server
body: <p>I have followed the installation instructions as shown  <a href="http://www.waveprotocol.org/code/installation" rel="nofollow noreferrer">here</a>
  to install the FedOne server,I am using openfire as the xmpp server and I have managed to run the server and the client as supposed.</p>
  
  <p>After a while I thought of deploying an agent and wanted to start the FedOne server again but the run-server.sh fails complaining </p>
  
  <p>`2010-09-20 12:25:30.425:WARN::FAILED SelectChannelConnector@localhost:9879: java.net.BindException: Address already in use
  2010-09-20 12:25:30.425:DBUG::EXCEPTION 
  java.net.BindException: Address already in use
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:209)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:289)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
      at org.eclipse.jetty.server.Server.doStart(Server.java:253)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
      at org.waveprotocol.wave.examples.fedone.rpc.ServerRpcProvider.startWebSocketServer(ServerRpcProvider.java:328)
      at org.waveprotocol.wave.examples.fedone.ServerMain.run(ServerMain.java:74)
      at org.waveprotocol.wave.examples.fedone.ServerMain.main(ServerMain.java:48)
  org.eclipse.jetty.server.Server@9300cc STOPPED
   +-ServletContextHandler@1469658@1469658/,file:/home/maxsap/Documents/progrs/FedOne/wave-protocol/war/ started
      +-ServletHandler@1304043 started
         +-[/wave]=>org.waveprotocol.wave.examples.fedone.rpc.WaveClientServlet-7654146{}
         +-[/socket]=>org.waveprotocol.wave.examples.fedone.rpc.ServerRpcProvider$WaveWebSocketServlet-33239569{bufferSize=1048576}
         +-[/static/<em>]=>org.eclipse.jetty.servlet.DefaultServlet-21909041{}
         +-[/webclient/</em>]=>org.eclipse.jetty.servlet.DefaultServlet-21909041{}
         +-[/]=>org.waveprotocol.wave.examples.fedone.rpc.WaveClientServlet-9975050{}
         +-[/attachment/*]=>org.waveprotocol.wave.examples.fedone.rpc.AttachmentServlet-33355664{}</p>
  
  <p>2010-09-20 12:25:30.426:WARN::FAILED org.eclipse.jetty.server.Server@9300cc: java.net.BindException: Address already in use
  2010-09-20 12:25:30.426:DBUG::EXCEPTION 
  java.net.BindException: Address already in use
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:209)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:289)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
      at org.eclipse.jetty.server.Server.doStart(Server.java:253)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
      at org.waveprotocol.wave.examples.fedone.rpc.ServerRpcProvider.startWebSocketServer(ServerRpcProvider.java:328)
      at org.waveprotocol.wave.examples.fedone.ServerMain.run(ServerMain.java:74)
      at org.waveprotocol.wave.examples.fedone.ServerMain.main(ServerMain.java:48)
  Sep 20, 2010 12:25:30 PM org.waveprotocol.wave.examples.fedone.rpc.ServerRpcProvider startWebSocketServer
  SEVERE: Fatal error starting http server.
  java.net.BindException: Address already in use
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:209)
      at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:289)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
      at org.eclipse.jetty.server.Server.doStart(Server.java:253)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
      at org.waveprotocol.wave.examples.fedone.rpc.ServerRpcProvider.startWebSocketServer(ServerRpcProvider.java:328)
      at org.waveprotocol.wave.examples.fedone.ServerMain.run(ServerMain.java:74)
      at org.waveprotocol.wave.examples.fedone.ServerMain.main(ServerMain.java:48)`</p>
  
  <p>by default the server runs at the port 9898 as shown on the above output,I have tried using netstat and lsof to find what service is using that port but no one does!
  also tried to change the port from the configuration but also no luck!
  Has anyone had the same problem? if yes have he/she solved it? and how
  also is there any linux command that I can query the port and tell me who is using that service?</p>