Never leaving his cave, he received many visitors, including many Samaritans among whom he lead to the Christian faith. Once there was a prostitute who, moved by certain jealous Samaritans, came to see the saint dressed as a nun. She incited him to sin by pretending to be suffering from an ache in her bosom which needed a rubbing. He consented to her wishes, but in order to resist carnal temptation, he kept his left hand all the while plunged in a fire at his side. Seeing this, the woman repented of her shameful behavior, entered a convent, and made rapid progress in the virtues.
The many miracles James wrought, and the fame spreading rapidly, drawing visitors to his hermitage, made him desire peace and quiet. He thus moved forty miles away to a riverside cave. It eventually came to the point where he began to think he had been established in the virtues, and this made him fall into pride. This is just what the Devil was waiting for to go on the attack.
At this time, a distraught nobleman who had a daughter possessed by demons offered her to the saint for healing. The saint prayed and immediately freed her from the demon. The girl's father, though, was afraid that the demon would disturb her again, and so he left her and her young brother in a nearby cave to the ascetic of many years. Unfortunately, James was overcome by desire and he violated the girl. He then became afraid that his abhorrent sin would be revealed, so he killed the woman and her brother and threw their dead bodies in the nearby river. Thus, he despaired completely of his salvation and made haste to return to the world. But on his way he met a holy elder who exhorted him to have confidence in the mercy of God.
Leaving the elder, James went on his way and came upon an old, desolate tomb. He went inside, moved the bones to a corner, and began to send up humble prayer to God. With his heart warmed by tears of repentance, the holy ascetic spent ten years in this dark tomb, unknown to mankind and venturing forth only at night to feed on some of the plants that grew nearby.
Some time later, when the land suffered from drought and lack of rain, God ordered the bishop of the city that unless James who was shut in the grave prayed, the dry spell would not end. Then the bishop together with all the people went to the saint, begged and finally convinced him to pray for them. As soon as he prayed there came a heavy rain. From this sign the saint received good hope about the forgiveness of his sin, for God "desires not the death of the sinner but that he should turn from his way and live" (Ezek. 33:11). The days passed and he added tears to his tears so that he advanced continuously in humility. In this way he commended his soul into the hands of God in peace at the age of seventy-five.
A church was later built on the site of the tomb where he found the grace of repentance.