Friday 4 January 2013

I am facing the problem with,
     When i started the Tomcat through Eclipse,by default 8080 port number is allocated to some another services,that's way i am changing the port number of the eclipse.Once i closed the eclipse the changed port number is still working continuously the the server is not working properly.

The solution is
         1. First of all check what are the services running on the system through command prompt

                 netstat -nao this command gives the following resut like
                    Proto  Local Address          Foreign Address        State           PID
                    TCP    0.0.0.0:8080             0.0.0.0:0              LISTENING       4352
                    TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       828

                    Here you found the PID number for each port number (like 8080 port),the open the Tsak Manager tab the services then you find the PID, based on this PID you can find which services are using  what port then you can stop the service.   (OR)
                  If the port number was changed next time if that port is still running on the PID is 0 or some another invalid PID, the solution for this is killing the service through the command prompt like,

                 taskkill /PID 8080 /F
Here we /F means we are killing the service forcibly.               

                                  

No comments:

Post a Comment