From what I know of James Joyce's life, he opposed the Catholic church because it he "found it impossible to remain in it on account of the impulses of [his] nature." But, in this lies the inherent problem of the artist. How does the artist balance his or her belief system with the urge to create? How does the artist remain happy and balance belief with creation?
I think Stephen, the novel's protagonist is a prime example of an individual who protects himself from sadness, from the gifts the Catholic church has to offer, but falsely thinks that by protecting himself from the church to succumb to his own nature, he ultimately protects himself from happiness. Stephen finds himself dejected and his soul depraved upon the rejection of the Church and reconciles himself to its teachings.
Stephen is ultimately happy at the end of the novel upon the culmination of his life into a work of art itself, but only after establishing a balance between his religion and his art. So, do we protect ourselves from sadness by rejecting our internal beliefs to feeding the needs of our human nature, and ultimately protect ourselves from happiness by doing this? Is our happiness and indication of whether we can reconcile our morals with our wants?
Pope John Paul II has much to say on the nature of the artist, saying that we are all artists, but the reconciliation of structure with creativity is the ultimate form of inner peace.
"What is the difference between “creator” and “craftsman”? The one who creates bestows being itself, he brings something out of nothing—ex nihilo sui et subiecti, as the Latin puts it—and this, in the strict sense, is a mode of operation which belongs to the Almighty alone. The craftsman, by contrast, uses something that already exists, to which he gives form and meaning. This is the mode of operation peculiar to man as made in the image of God.
Not all are called to be artists in the specific sense of the term. Yet, as Genesis has it, all men and women are entrusted with the task of crafting their own life: in a certain sense, they are to make of it a work of art, a masterpiece."