Model studies of long Josephson junction arrays coupled to high-Q resonator