Original: He was a student and cantor in a Benedictine monastery (1779-1787) in Kremsmünster.
Simplified: He went to Kremsmünster to study in a Benedictine monastery.