我已经使用 GlassFish Server 4 安装了 Netbeans 7.3.1,但是当我运行 web 应用程序(JSF-primcefaces + Hibernate)默认 jsp(index.xhtml)页面或任何其他页面时,我得到了错误:
DEFAULT=C:\Users\Ucf\Documents\NetBeansProjects\Agenda\build\web&name=Agenda&contextroot=/Agenda&force=true failed on GlassFish Server 4.0
Erreur lors du déploiement : Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: jar:file:/C:/Users/Ucf/Documents/NetBeansProjects/Agenda/build/web/WEB-INF/lib/primefaces-3.5.jar!/META-INF/faces-config.xml
Cause: Class 'org.primefaces.component.fileupload.FileUploadRenderer' is missing a runtime dependency: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItem. Pour plus d'informations, consultez le fichier server.log.
C:\Users\Ucf\Documents\NetBeansProjects\Agenda\nbproject\build-impl.xml:1040: The module has not been deployed.
See the server log for details.