在Glassfish中部署错误 - PrimeFaces

时间:2013-07-30 12:08:41

标签: java netbeans glassfish

当我在NetBeans中运行项目时,一切正常,但是当我尝试部署它时,我收到以下错误:

Error occurred during deployment: 

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/User/Downloads/glassfish-4.0/glassfish4/glassfish/domains/domain1/applications/Zaman/WEB-INF/lib/primefaces-3.4.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. Please see server.log for more
details.

它说原因是:

Cause: Class 'org.primefaces.component.fileupload.FileUploadRenderer'
is missing a runtime dependency: java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileItem.

我不知道该怎么做。

2 个答案:

答案 0 :(得分:3)

您应该将Commons Fileupload添加到您的应用中。

答案 1 :(得分:1)