fix embedded tomcat SSL (now can read server port dynamically)