部署Primefaces-Extensions示例时出错,为什么?

时间:2013-05-15 18:36:45

标签: primefaces primefaces-extensions

部署时出错:加载应用程序时出现异常:java.lang.IllegalStateException:ContainerBase.addChild:start: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>

1 个答案:

答案 0 :(得分:8)

正如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/

下载该库