更新时间:2022-05-04 02:52:12
您的Web应用程序的运行时类路径很脏.
Your webapp's runtime classpath is dirty.
这是一个非常普遍的问题,如果没有Webapp部署中提供的所有库的完整概述,就不可能有一个合适的答案.我***的猜测是您已将RichFaces源代码JAR文件放置在/WEB-INF/lib
中. RichFaces随附了用于二进制类和源代码的单独的JAR文件.您不应将RichFaces源代码JAR文件(文件名以-source
结尾的文件)放在类路径中.删除它们并保留二进制JAR文件.源代码JAR文件又包含几个启动脚本.它们不应执行两次.
This is a pretty generic problem which can not have a single suitable answer without having a complete overview of all libraries supplied in the webapp deploy. My best guess would be that you've placed RichFaces source code JAR files in /WEB-INF/lib
. RichFaces ships with separate JAR files for the binary classes and for the source code. You should not put RichFaces source code JAR files (the ones with a filename ending on -source
) in the classpath. Remove them and keep the binary JAR files. The source code JAR files contain in turn also several startup scripts. They should not be executed twice.
对于CSS问题,这可能无关紧要. RichFaces通过新的JSF2 <h:head>
组件加载CSS.确保在(主)模板中使用<h:head>
而不是<head>
.
As to the CSS problem, this is likely unrelated. RichFaces loads CSS through the new JSF2 <h:head>
component. Make sure that you have in your (master) template(s) a <h:head>
instead of <head>
.