PrimeFaces + JSF + Maven + Jetty

UI Components for JSF
Post Reply
torquato.neto
Posts: 8
Joined: 14 Oct 2010, 02:59

14 Oct 2010, 03:33

Guys,

I am using the jetty and Primefaces and whenever I run the application displays the following error:

the command for run app web: mvn war:inplace jetty:run

Error:
"com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String getWidgetVar(java.lang.String) "

PrimeFaces
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>2.2.M1</version>
</dependency>

JSF
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.0-b05</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.0-b05</version>
</dependency>

Which version should I use the jsf and primefaces?


Help-me please...

torquato.neto
Posts: 8
Joined: 14 Oct 2010, 02:59

14 Oct 2010, 18:45

Fixed

The problem was a bad use of "mvn war: inplace".

Each time you run the command it puts dependancy within "src/main/webapp/WEB-INF/lib" and when you run "mvn clean" libraries are not deleted, because they are at the source code. So it is okay to run the "mvn war: inplace" only once, when unsure of the project dependencies and then run "mvn jetty: run" normally. Every time you add or remove a dependency, remember to delete the "WEB-INF/lib" not to have the problems that I mentioned.

The versions I'm using are:

Primefaces 2.2.RC1-SNAPSHOT
2.0.3 JSF

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: jorge.zavala and 18 guests