Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Waiting for Tomcat to shut down

 
Joshan Chetri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !!
 
Karthik Shiraly
Bartender
Posts: 1205
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joshan Chetri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic