Resonant driving of a nonlinear Hamiltonian system