I am using NetBeans IDE. After closing the IDE Tomcat server is not shutting down, instead a progress bar appears and says "Waiting for Tomcat". This goes forever ....
This started happening after i reconfigured my firewall (iptables).
#rules of firewall
iptables -P INPUT DROP # Input Policy
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# LO ( setting Input Chain rules for loopback interface)
iptables -A INPUT -i lo -p tcp --dport 8084 -j ACCEPT # accepting everything coming to port 8084 (for tomcat). Earlier this line was to accept all the traffic on localhost (iptables -A INPUT -i lo -j ACCEPT
I want to know what other port i have to enable to solve the prob !!
Open Tomcat server.xml and see the port number for the root <server> element. It'll be something like
<Server port="8005" shutdown="SHUTDOWN">
That's the port on which tomcat accepts a shutdown command.