Error trying to run JSF application

0

I'm starting to study JBoss, Maven, etc. But when I run a page that I created for testing, 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 .jar javax.faces-api-2.2.jar Does anyone know what it can be? Thanks

    
asked by anonymous 05.05.2015 / 19:14

1 answer

2

If you are in JBoss, you can not package any JSF-related jar with your application because it is already available within your own JBoss (View available resources within a JEE 6 container ). In maven, put JSF as provided:

<dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>2.2.0</version>
    <scope>provided</scope>
</dependency>
    
05.05.2015 / 20:06