Search code examples
primefacesatmosphereprimefaces-push

Why do I get a java.lang.NoSuchFieldError on web application with JSF?


I am working on web application with JSF and I try to make notifications by Primefaces Push but when I run the project I got this exception :

java.lang.NoSuchFieldError: framework
at org.primefaces.push.PushServlet.configureFramework(PushServlet.java:66)
at org.primefaces.push.PushServlet.configureFramework(PushServlet.java:36)
at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:74)

Also I added this Libraries :

primefaces 5.0 atmosphere-runtime-2.3.5 slf4j-api-1.7.7 commons-lang3-3.4


Solution

  • You should use an Atmosphere version that is compatible with PrimeFaces 5.0. That is 2.1.3 according to the docs, pom and releasenotes.