A class of noncoercive variational inequalities