The Talmud (Brachot 31a) states that when praying it is important not to be in any state of sadness. There is no contradiction between seriousness, which is an obligation during prayer, and joy. On the contrary, they go hand in hand when a person stands in prayer before the Almighty.