N.J. warns of teacher shortage