Resonantly driven nonlinear density waves in protostellar disks