When is the 'sum over classical paths' exact?