Theoretical studies on meson production in nuclear reactions initiated by photons, electrons and nucleons