As explained in Application Configuration Resource File, an application can have multiple application configuration resource files. If these files are not located in the directories that the implementation searches by default or the files are not named faces-config.xml, you need to specify paths to these files.
To specify these paths using NetBeans IDE, do the following:
Expand the node of your project in the Projects pane.
Expand the Web Pages and WEB-INF nodes that are under the project node.
After the web.xml file appears in the editor pane, click General at the top of the editor pane.
Expand the Context Parameters node.
In the Add Context Parameter dialog:
Enter javax.faces.CONFIG_FILES in the Param Name field.
Enter the path to your configuration file in the Param Value field.
Repeat steps 1 through 7 for each configuration file.
To specify paths to the files by editing the deployment descriptor directly follow these steps:
Add a context-param element to the deployment descriptor.
Add a param-value element inside the context-param element and call it javax.faces.CONFIG_FILES.
Add a param-value element inside the context-param element and give it the path to your configuration file. For example, the path to the guessNumber application’s application configuration resource file is /WEB-INF/faces-config.xml.
Repeat steps 2 and 3 for each application configuration resource file that your application contains.