problem in a maven + JSF application

3

I'm trying to follow a workbook but when I do the procedure Access the project properties and find the side menu Project Facets the window appears in the attachment and then I mark the altenative as shown in the figure JavaServer Faces

eclipse guides you to click on the highlighted area with the name of

further configuration available

What I can understand is that it wants me to add the jsf library manually.

This is not the common procedure.

I've already added the library by Maven itself

The only thing I want is to mark the option JavaServer Faces is OK after the handout.

How do I resolve this problem?

The project I'm creating is a Maven project.

When I run the same application with the problem it generates this message

An error has occurred. See error log for more details. java.lang.NullPointerException

    
asked by anonymous 13.08.2014 / 19:32

2 answers

0

Hello, Good evening, well I solved the same problem by downloading the mojarra library only, using the link highlighted in the image below!

    
26.03.2017 / 11:01
-2

Even though the above conditions were not able to resolve, however I realized that in my Maven project I did not have web.xml that would be the same thing as creating an Android project without the AndroidManifest.xml file, it does not run.

After I put the web.xml file in the WEB-INF folder it ran normally. but thank you for your help. and was very happy to have charitable people like you thank you for everything.

here is the web.xml file

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
</web-app>
    
14.08.2014 / 20:56