ui:repeat is not working solution JSF 2.x version, How to enable ui:repeat tag

ui:repeat is not working solution JSF 2.x version, How to enable ui:repeat tag

If ui:repeat tag is not working/rendered in your facelet based JSF application,
you should add the correct dependencies using Maven;

There are two approaches like as below;
one jar solution

 <dependency>
 <groupId>javax.faces</groupId>
 <artifactId>javax.faces-api</artifactId>
 <version>2.2</version>
 <scope>provided</scope>
</dependency>

or only the following two jars

 <groupId>com.sun.faces</groupId>
 <artifactId>jsf-impl</artifactId>
 <version>2.2.9</version>
</dependency>

<dependency>
 <groupId>com.sun.faces</groupId>
 <artifactId>jsf-api</artifactId>
 <version>2.2.9</version>
</dependency>

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet


java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet

Add the following libraries inside pom.xml (Maven)

  <dependency>
     <groupId>com.sun.faces</groupId>
     <artifactId>jsf-api</artifactId>
     <version>2.1.13</version>
 </dependency>
 
 <dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-impl</artifactId>
    <version>2.1.13</version>
 </dependency>
 
 <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>javax.servlet-api</artifactId>
   <version>3.1.0</version>
 </dependency>

java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet Eclipse luna with correct libraries


java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1031)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4914)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5201)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

solution follows

if you have related jars and getting the exception above

1

click right on project / click properties and select Deployment Assembly

da

and do the following steps click add

2

select java build path entries

3

add maven dependencies and redeploy your code

4

<p:fileUpload> PrimeFaces handleFileUpload method not called solution


If you encounter this problem, you need to apply the following steps (2 Steps),

First of all, the following jars must be downloaded as they are required by the Primefaces fileupload component,

commons-fileupload (latest version) http://commons.apache.org/fileupload/
commons-io (latest version) http://commons.apache.org/io/download_io.cgi

Also the following filter should be defined inside web.xml file;

<filter>
   <filter-name>PrimeFaces FileUpload Filter</filter-name>
   <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
</filter>

<filter-mapping>
   <filter-name>PrimeFaces FileUpload Filter</filter-name>
   <servlet-name>Faces Servlet</servlet-name>
</filter-mapping>