Removing package exports and allowing servlet version [2.4,4)