You should not include context path into this check. Please check what context path is and you will know why.