one finds here, rather than a contradiction, is simply the deployment of
equivocal language. While Paul’s use of
the term justification refers to one’s having the appropriate standing before
God, James’ use of the term refers to one’s appropriate standing before other Christians. Mere intellectual assent does not suffice to
demonstrate one’s claim to be a Christian, but must be accompanied by works if
it is to prove useful to others.
However, this is not at all to say (and James never does say) that faith
is insufficient for salvation.
You may also be interested in James vs. Paul