You cannot have one without the other. Even so, if you live a life in obedience to the God of the Bible, the Father of the Lord Jesus Christ and Savior of all who believe and trust in Him, you will be reasonably happy. Happiness is a by-product of good works, by helping others that are less fortunate than us. Happiness is a by-product of prayer and fasting before the Lord. Happiness is a by-product of the regular assembling of ourselves with believers of like faith.
Happiness is a by-product of the ardent fervor of our spirits.
Happiness is a by-product of the study of God's Word. Happiness is a by-product of the fear of God, by which we attain wisdom. Happiness is a by-product of a pure conscience toward God. Happiness is a by-product of assurance of salvation. Happiness is a by-product of trying to serve God in all that we do, even if we don't succeed.