RESONANCE TRAPPING IN PROTOPLANETARY DISKS. I. COPLANAR SYSTEMS