fixes for login to console on jboss and tomcat