Wednesday, July 4, 2012

WARN - Failed to start: SocketListener0@0.0.0.0:4444

WARN - Failed to start: SocketListener0@0.0.0.0:4444
Exception in thread "main" java.net.BindException: Selenium is already running o
n port 4444. Or some other service is


This is very command issue which you will see when you start selenium server either from your code or from command line.
This WARNING comes generally because selenium server is not shutdown properly and you are trying to start again.

So you just need to make sure after you see this error that your selenium server has been stopped properly. To achieve that you need to run the below command in browser URL(Address bar)

http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer

This will show you OKOK and then you are down. Now you try to start selenium server again and it should start without any problem.