If I deploy my webapp on a tomcat 8 with java 1.8, I got this error:
org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [Faces Servlet] in context with path [/mywebapp] threw exception [/fileupload.xhtml: Property 'listener' not found on type mywebapp.UploadController] with root cause javax.el.ELException: /fileupload.xhtml: Property 'listener' not found on type mywebapp.UploadController
Code of fileupload.xhtml:
<rich:fileUpload fileUploadListener="#{uploadController.listener}"
id="dataupload"
listHeight="100px"
maxFilesQuantity="100"/>
The class UploadController:
public class UploadController {
...
public void listener(FileUploadEvent e) throws Exception {
final UploadedFile item = e.getUploadedFile();
...
}
}
If I start my webapp locally with a jetty, everything works perfectly.
Where is the error?