try 127.0.0.1 instead of localhost for error that only occurrs on
jenkins, added some javadoc