In Judaism, physical resurrection in the literal sense has not been a dominate perspective. Many Jewish sages through the centuries considered the most vivid descriptions of the resurrection (Book of Ezekiel) to be literary potent metaphors about the spiritual revival of the Jewish People, after their land was made desolate, and they were exiled in Babylonia. Scattered, and struggling to preserve their heritage in a foreign land. The resurrection is the promise of things to come, about their return and about restoring their spirit, their spiritual heritage.
As for the Ecclesiastes, it stands very distinctly in Biblical literature. It is like Hebrew Zen as far as I'm concerned. Or a direct pointing at reality and life, if you will. In this case, it reflects a repeating Biblical perspective about death. The Hebrew Bible says very little about an afterlife. In the Bible what expects the living after they die is commonly the grave.