我已经使用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.