James Cagney turned down an invitation to feature in the film Ragtime .
The film features the final film appearances of James Cagney and Pat O'Brien ; early appearances , in small parts , by Samuel L. Jackson , Jeff Daniels , Fran Drescher , Ethan Phillips and John Ratzenberger ; and an uncredited appearance from Jack Nicholson .