Have you tried stop tomcat, flush hosts, start tomcat? In the other thread MySQL Host is blocked because of many connection errors unblock with 'mysqladmin flush-hosts' it is mentioned that it might be a shutdown issue, so I would suggest to make sure that the shutdown is before you flush hosts (I haven’t understood why that should be the case, I just want to make sure that this is not what’s causing your problems).