【问题标题】:Error while deploy Primefaces-Extensions example, why?部署 Primefaces-Extensions 示例时出错,为什么?
【发布时间】:2013-05-15 18:36:45
【问题描述】:

部署时出错:加载应用程序时出现异常:java.lang.IllegalStateException:ContainerBase.addChild:开始:org.apache.catalina.LifecycleException:java.lang.RuntimeException:com.sun.faces.config.ConfigurationException:java .lang.ClassNotFoundException:org.apache.commons.lang3.StringEscapeUtils 该模块尚未部署。

这是我的代码:

<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:pe="http://primefaces.org/ui/extensions">
<f:view contentType="text/html" locale="en">
<pe:head title="PrimeFaces Extensions - ShowCase">
    <f:facet name="first">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="pragma" content="no-cache"/>
        <meta http-equiv="cache-control" content="no-cache"/>
        <meta http-equiv="expires" content="0"/>
    </f:facet>
</pe:head>
<h:body>
    <pe:layout>
        <pe:layoutPane position="north">
            <ui:insert name="header"/>
        </pe:layoutPane>
        <h:form>
            <ui:insert name="center"/>
            <pe:layoutPane position="south">
                <ui:insert name="footer"/>
            </pe:layoutPane>
        </h:form>
    </pe:layout>
</h:body>

【问题讨论】:

  • 我需要多少库??? common-lang3.jar, com.google.gson.GsonBuilder??我该如何开始...使用 facelet、netbean...

标签: primefaces primefaces-extensions


【解决方案1】:

正如https://github.com/primefaces-extensions/primefaces-extensions.github.com/wiki/Getting-Started 上的 primefaces 扩展项目入门中所述,您需要将“Apache Commons Lang3”添加到您的项目中。

如果 Apache Commons Lang3 不在类路径中,请将其添加到您的项目中。

您可以从http://commons.apache.org/proper/commons-lang/下载库

【讨论】:

  • 我还有其他问题:java.lang.ClassNotFoundException: com.google.gson.GsonBuilder,我无法下载这个库,因为我的国家(古巴)被谷歌屏蔽了......可以帮助我从其他网站下载??
  • 或许你可以试试maven仓库下载jarmvnrepository.com/artifact/com.google.code.gson/gson/2.2.3
【解决方案2】:

根据Primefaces Extensions Getting Started上写的信息

PF 扩展依赖:

祝你好运。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-18
    • 2013-09-30
    • 2013-04-23
    • 2013-11-24
    相关资源
    最近更新 更多