add servlet-api dependency. Update java version