如果我使用java 1.8在tomcat 8上部署我的webapp,我收到了这个错误:
org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() 对于与路径[/ mywebapp]抛出的上下文中的servlet [Faces Servlet] 异常[/fileupload.xhtml:Property' listener'在类型上找不到 带有根本原因的mywebapp.UploadController] javax.el.ELException: /fileupload.xhtml:Property' listener'在类型上找不到 mywebapp.UploadController
fileupload.xhtml代码:
<rich:fileUpload fileUploadListener="#{uploadController.listener}"
id="dataupload"
listHeight="100px"
maxFilesQuantity="100"/>
类UploadController:
public class UploadController {
...
public void listener(FileUploadEvent e) throws Exception {
final UploadedFile item = e.getUploadedFile();
...
}
}
如果我用码头在本地启动我的webapp,一切都很完美。
错误在哪里?