Ranadheer Reddy
Ranadheer Reddy

Reputation: 4324

Selenium Failed to start Socket listener

I am starting selenium server.

After i enter java -jar selenium-server-standalone-2.0b2.jar in command prompt, i am getting following

enter image description here

See the 11th line(6th from bottom), which is saying Failed to start Socket listener.

What does it means? and How to start it ?

Please Help.

Upvotes: 1

Views: 4009

Answers (2)

rs79
rs79

Reputation: 2321

In my experience, the most innovative approach in this case is to simply reboot your test machine. This should clear any rogue instances of the Selenium server running on the port.

Upvotes: 3

Adam Sweeney
Adam Sweeney

Reputation: 386

You need to kill the process that is using that port. You more than likely improperly closed Selenium the last time, and the process is continuing to run.

You can run netstat -ab in cmd to check the process that is using that port. More then likely going to be java.exe

Upvotes: 4

Related Questions