In this paper we use Ekeland's ε-variational principle and we prove that, for some integral functionals, there exists a minimizing sequence compact in L.