Oil rises on economic recovery hopes, weaker dollar