【问题标题】:Deploy error in Glassfish - PrimeFaces [duplicate]Glassfish中的部署错误 - PrimeFaces [重复]
【发布时间】:2013-07-30 20:31:28
【问题描述】:

当我在 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.

我不知道该怎么办。

【问题讨论】:

    标签: java netbeans glassfish


    【解决方案1】:

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

    【讨论】:

    • 谢谢。它有帮助。应用程序部署没有任何问题。但是,现在它是在启动它之后说的。 If the server or listener is not running, the link may not work. In this event, check the status of the server instance. After launching the web application, use the browser's Back button to return to this screen.
    • 似乎是一个不同的问题,值得一个不同的问题。
    • 谢谢。终于部署好了。
    【解决方案2】:
    猜你喜欢
    • 2017-10-23
    • 1970-01-01
    • 2012-07-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-23
    • 2011-07-24
    相关资源
    最近更新 更多