There are times when you create a Primefaces Java project on netbeans and upon first build you are
greeted with an error whose stack trace indicates a missing runtime dependency.
The error is, as snapped below, related to the Primefaces Fileupload widget component
not having access to a class input on the classpath of your project.
Solution:
The primefaces widget has been designed by PrimeTechnology
to depend on the Apache Commons classes which can be obtained from the Apache
Commons download page as an archive.
Extract and drop the commons-fileupload-1.3.jar
file in your project library folder or along your project classpath and
recompile project.
In netbeans IDE, just add the jar file to the library of your project as shown below.
In netbeans IDE, just add the jar file to the library of your project as shown below.