Solvability of the Dirichlet problem in W^{2,p} for a class of elliptic equations with singular data