部署Primefaces扩展时出错示例,为什么?
部署时出错:加载应用程序时出现异常: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 模块尚未部署 这是我的代码:部署Primefaces扩展时出错示例,为什么?,primefaces,primefaces-extensions,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.Str
<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>
正如上的primefaces扩展入门项目中所述,您需要将“Apache Commons Lang3”添加到您的项目中 如果项目不在类路径中,请将Apache Commons Lang3添加到项目中
您可以根据上写的信息从下载库 PF扩展依赖项:
- 将当前PrimeFaces JAR文件从此添加到项目中
- 将最后一个PrimeFaces Extensions JAR文件从添加到项目中
- 如果项目不在类路径中,则添加到项目中
- 将Gson JAR文件从添加到项目中(可选)
- 如果需要,可以从(可选)中为CKEditor添加最后一个JAR文件
- 如果需要,请从(可选)添加CodeMirror的最后一个JAR文件
- 添加导出器依赖项,如果使用导出器组件
祝你好运。我需要多少库???common-lang3.jar,com.google.gson.GsonBuilder??我怎样才能开始。。。使用facelet、netbean…我还有其他问题:java.lang.ClassNotFoundException:com.google.gson.GsonBuilder,我无法下载此库,因为我的国家(古巴)被google阻止。。。可以帮我从其他网站下载吗?也许你可以试试maven repository来下载jar