Does your bible contain Ephesians? In chapter 2 -- in context, not single verses lifted out of context -- it says:"As for you, you were dead in your transgressions and sins, in which you used to live when you followed the ways of this world and of the ruler of the kingdom of the air, the spirit who is now at work in those who are disobedient. All of us also lived among them at one time, gratifying the cravings of our flesh and following its desires and thoughts. Like the rest, we were by nature deserving of wrath. But because of his great love for us, God, who is rich in mercy, made us alive with Christ even when we were dead in transgressions — it is by grace you have been saved. And God raised us up with Christ in the heavenly realms in Christ Jesus, in order that in the coming ages he might show the incomparable riches of his grace, expressed in his kindness to us in Christ Jesus. For it is by grace you have been saved, through faith—and this is not from yourselves, it is the gift of God— not by works, so that no one can boast. For we are God’s handiwork, created in Christ Jesus to do good works, which God prepared in advance for us to do.
The book of James is often misinterpreted. James says that after you have been saved you are expected to do good works. This agrees with Ephesians 2:10, quoted above. If you don't actively love your neighbor then your faith is worthless.
In Matthew's gospel Jesus was speaking to the Jews of Jesus time, not to Christians -- there were none. In Matthew 7:15-23 Jesus is speaking about false prophets. He is saying to be careful of people who teach what is contrary to God's will, then come to Jesus expecting to be justified by their actions. It has nothing to do with salvation by grace. Jesus said "Many will say to me on that day, ‘Lord, Lord, did we not prophesy in your name and in your name drive out demons and in your name perform many miracles?’ Then I will tell them plainly, ‘I never knew you. Away from me, you evildoers!’" Do you really think this has anything to do with Christians that have been saved by God's grace? Really?
The single verse that you quote from John, like the others, is out of context. Jesus is explaining to his (pre-Christian) disciples that he and they are one. "You are already clean because of the word I have spoken to you. Remain in me, as I also remain in you. No branch can bear fruit by itself; it must remain in the vine. Neither can you bear fruit unless you remain in me. “I am the vine; you are the branches. If you remain in me and I in you, you will bear much fruit; apart from me you can do nothing. " Like the teaching about false prophets, this actually proves that nobody is justified by their own works. He continues, "If you remain in me and my words remain in you, ask whatever you wish, and it will be done for you. This is to my Father’s glory, that you bear much fruit, showing yourselves to be my disciples." That has nothing to do with justification by works -- zero!
It is a common error to take single verses out of context without considering to whom they were written/spoken, when they were written spoken (before the cross or after), and why. There is no doctrine of justification by works in scripture. It goes against the most fundamental teaching of the New Covenant.