modify the threads add listener bug on tomcat