1st in his class at West Point. Commandant at West Point. Asked by Lincoln to command US troops after Civil War started. Fought a defensive war against US troops for 5 years. Yes I think that qualifies him as a great general.
Charles Mason was first in 1829 graduating class at West Point. Lee was second. Mason resigned his commission in 1831 and never served in the army again.
Second in his class.