Rimsky-Korsakov 's '' Mozart and Salieri '' ( 1897 ) seriously explores the preposterous legend that Antonio Salieri , the powerful court composer in Vienna during the reign of Emperor Joseph II , was so jealous of the upstart Mozart , whose staggering genius seemed to him a capricious gift of God , that he poisoned him .