President Obama, who has clashed with the military top brass over war and gays, will soon have a chance to reshape the Joint Chiefs of Staff as he faces contentious decisions next year on withdrawing troops from Afghanistan and on ending some weapons systems.