Check the manifold all the way down to the muffler. Probably a hanger or the heat shield on the manifold or the cat converter is loose.
- One of the "teeth" in the gears might be broken off or loose.
Why don't you check one of the jeep cherokee forums listed below. That's what I use before tackling the problem.