我有JSF 2.2项目的richfaces 4.5。它不是一个maven项目。我已经包括了JAR。 应用程序工作正常,richfaces组件在我的本地tomcat 8实例上正确呈现。我正在部署eclipse。
现在我将项目导出为war文件并部署了一个远程tomcat 8实例。我的页面是空白的,有以下警告
Warning: The page /index.xhtml declares namespace http://richfaces.org/rich and uses the tag rich:chart , but no TagLibrary associated to namespace.
Warning: The page /index.xhtml declares namespace http://richfaces.org/rich and uses the tag rich:chartLegend , but no TagLibrary associated to namespace.
我的类路径中有JAR以下 -
richfaces-rich-4.5.17.Final.jar
richfaces-core-4.5.17.Final.jar
richfaces-a4j-4.5.17.Final.jar
myfaces-api-2.2.12.jar
myfaces-impl-2.2.12.jar
jstl-1.2.jar
... and other
以下是我的标签声明的外观
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich" >
<h:head>