add setLocal because of tomcat error