do yourself a huge favor by skipping all the potential 'user-error' fixes you'll read here the next few days and send your 7D to Canon Service for repair. It will come back with the focus issues corrected. From the responses I've already read:
1. lenses are front-focusing - no lens can front focus THAT much without being garbage on your 40D as well
2. too slow shutter speed - 1/25 on a tripod with remote shutter release is fine ... unless you're in an earthquake! Frankly, I would have used 1/200 to be safe however.
3. center point vs spot focus - I would agree with this because the 7D will choose to focus on subjects closer to the lens. But in your case the can and candle holders eliminate that variable.
4. Sharp, contrasty object. Nonsense ... it should focus accurately on your can. If it doesn't, something isn't right.
5. AV mode - bologna! It should focus in AV, TV, Manual, Auto, etc. If it doesn't, something isn't right.
Here's what I did after finally coming to the realization that my 7D had regular focus issues. Copy your test images to a CD and ship it (with your 7D) to Canon Service (I used NJ because it's closest to Ohio). Include your write-up on test methodology to document focus issues. You have plenty enough information for a technician to understand and recreate your out-of-focus sample images and correct the problem.
I listened to all the 'user-error' stuff here and was convinced it was me and not the camera. Wrong. After weeks of dealing with a camera that couldn't properly focus, I sent it to Canon Service. When it came back, the exact same focus tests yielded 24-25 perfectly focused shots. The only OOF shot was clearly and obviously my fault.
Turnaround time on Canon service was about 7 calendar days from my home to Canon and back.
Good luck and let us know how things turn out for you.