It isn't the war itself that was the problem so much as the fifty years after it.  Israel has continuously dislocated Arabs in the West Bank and given that land to Israel settlers.  As long as that happens there can be no peace.