Romans 3:28
For we hold that a man is justified and made upright by faith independent of and distinctly apart from good deeds (works of the Law). [The observance of the Law has nothing to do with justification.]
vs.
James 2:24
You see that a man is justified (pronounced righteous before God) through what he does and not alone through faith [through works of obedience as well as by what he believes].
I understand that real faith is demonstrated in what you do...but just looking at the context and verbiage of the two verses leaves me puzzled.
Paul's talking limitedly about deeds done in the law?
James isn't talking about justification before God though; contextually, it is limited to the proof of faith, with works serving as a validation for faith. Works are like the king's seal on a letter indicating that it is actually from the king. Works declare, "The faith is genuine." He has no language in here to indicate that he is talking about having a saving justification, while much of Paul's own language is judicial, detailed and specific. James only means to tackle one issue here: "You say you believe in Christ, but why are you acting like you don't?"
Start on the premise that we are justified by faith, but what good is the faith if it is dead and has no life to it? Like a body without breath. That really is no different than what Paul said in Romans: "Shall we sin so that grace may abound? May it never be!" "Sin will not have dominion over you, for you are not under the law, but under grace." "For if you live according to the flesh, you will die; but if by the Spirit you mortify the deeds of the body, you will live." This is the same man who said we are justified apart from the works, the same one who says, "To him who doesn't work, but believes on him who justifies the ungodly, his faith is counted unto righteousness."
Justification shows up in two ways: One is in the legal righteous state applied to the Christian by the Holy Spirit (by this he is saved), and the other is the justification/vindication before men. The people mentioned in James 2 have been justified in the sense of
proof. At the last day, works will be the sign that the faith was authentic (Romans 2, Matthew 25 are clear), but they will not be what justifies or what makes the man right before God, that's a very important thing to distinguish. If anything, it is like the evidence brought into a court case to examine whether or not something was true. However, that is a very different thing from using works to gain legal standing before God, and it preserves the natural ordering of justification and sanctification. A man works
because he is justified, and
not to be justified, as the Roman Catholicism claims. James doesn't have any problem at all with this.
I would consider too that Paul is explicitly, loudly clear in Galatians that whoever tries to be justified by works of the law will be damned, and that they are under a curse. And Paul made a strong point in Galatians in the first chapter to authenticate that it was God who gave him this revelation concerning grace alone and faith alone, and it was not something that he had made up. Not any one of the apostles objected to the message when he verified it with Peter, James (who was Christ's earthly brothers, not sure if this one is the author of the epistle), and John, and they made no additions to what he told them, and that is the Gospel that is declared in the book of Galatians. To lean wholly on Christ is what Romans and Galatians order us to do, because the righteousness of Christ is the only thing that will bring us through the gates of heaven.