It depends of what kind of success you're talking about. A sad rich person can be successful in business, money-making, etc. A happy not so rich person can be successful in having friends, a loved one, family, steady job, etc.
But generally, I would say happiness. Because if you are happy, you are much more likely to be motivated to achieve bigger things in life.