0
Guys I’m starting to study Jboss, Maven, etc. However when I run a page I created for tests this error appears:
Could not find backup for factory javax.faces.context.FacesContextFactory
In my project I have a directory called Maven Dependencies and inside it is the . jar javax.faces-api-2. 2.jar Does anyone know what it can be? Thank you
First of all, if you are in Jboss, you cannot bundle with your JSF application because it is already available within the Jboss itself. In Maven, set JSF to <Scope>provided</Scope>, restart your application, and tell if the error remains the same. It would also be good if you edit the question and put your faces-config.xml, pom.xml and web.xml.
– wryel
That’s right, I put the <Scope>provided</Scope> and it worked. Post this comment as an answer so that I mark as a solution
– DiegoAugusto