If you've had the 'book for a couple of years, the battery has in all likelihood run to the end of its life. Li-Ion batterys only get a certain number of charge cycles before they start to fail, and it sounds like you just need to replace yours (if you have applecare they should take care of it for you).