Do you have problems starting the car at all, or is just the light on?
If you dont have any problems with the battery (it is staying charged) then it is probably just some sensor making the computer think it isn't charging. Check all the wiring and make sure it is tight.