How this thing is related to my tomcat? Let us say my program is not exiting properly but when i close my netbeans , wouldn't it shut down the bundled tomcat automatically.
If you shut down netbeans in the normal way, you are right, netbeans also should close bundled tomcat but when you close it by killing the java.exe processes, i guess this may happen. Even if bundled tomcat s closed, the port used might not have been released properly.