Fixed bug where contextPath was not set.