Thursday, November 8, 2012

Tips of the day

This is simple tip of the day,
basic stuff,
just to refresh you mind.
You may encounter the below error once you are running your application on tomcat server:

Unrecognized Windows Sockets error: 0: JVM_Bind

This means the port you are using to deploy you application on is being used by another process,
so how to figure out that which process blocking you port,
use below command:

netstat -a -n -o

-a : display all the connection

-n : display address and port

-o : display the process id bind to the connection

step 1: get the process id that your port is bind to it after running the above command.

tasklist -v -fi "PID eq " -fo list

-v: display task information

-fi: display task that match search criteria

eq: equal

-fo: display in format of (list, csv, table)

step 2: get the name of task or process that lock your port

step 3: use the task manager or command prompt to kill that process

Post a Comment
Related Posts Plugin for WordPress, Blogger...