I am using following JARs
- jsf-impl-2.1.0
- jsf-api-2.1.0
- Apache MyFaces 2.1.5
You seem to be mixing Mojarra and MyFaces implementations. This is not right. Use the one or the other, not both. The jsf-impl
and jsf-api
JARs are from Mojarra. Remove either them, or the MyFaces one. Mixing them will result in conflicts in finding the right implementation factories, exactly as the exception message is trying to tell you.
Further,
this is supposed to be already provided by Tomcat. You're not supposed to supply your own. Remove it altogether.
All with all, given this pretty major mistake, I have the impression that you're not reading a proper tutorial/resource while learning JSF. I recommend to verify if this isn't just your own "stupid mistake", or if the resource really incorrectly said it so. In the latter case, consider looking for another one.
See also: