无法实例化类...因为它正在寻找错误的类
我正在将 IBM RAD 与 WAS 7.0 应用程序服务器结合使用。我正在使用 RichFaces 组件开发一个 JSF 项目,但其中一个类遇到了一些问题。每当我启动服务器时,我都会在控制台中收到此错误:
[9/23/10 15:38:13:182 EDT] 00000016 annotation W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses unable to instantiate class
java.lang.ClassNotFoundException: org.richfaces.taglib.HtmlToolTipTag
我相信问题是 HtmlToolTipTag 实际上并不存在。在RichFaces包中,它被命名为HtmlToolTipTagHandler。我是开发新手,不知道如何解决这个问题。任何帮助将不胜感激。
谢谢!
I'm using IBM RAD with a WAS 7.0 application server. I'm developing a JSF project using RichFaces components and I'm having some trouble with one of the classes. Whenever I start my server, I'm getting this error in the console:
[9/23/10 15:38:13:182 EDT] 00000016 annotation W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses unable to instantiate class
java.lang.ClassNotFoundException: org.richfaces.taglib.HtmlToolTipTag
I believe the problem to be that HtmlToolTipTag doesn't actually exist. In the RichFaces package, it's named HtmlToolTipTagHandler. I'm new to development, and I'm not sure how to fix this. Any help would be appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
HtmlToolTipTag
是 在 RichFaces 3.1 中引入,但自 RichFaces 3.2 起,它显然已被HtmlToolTipTagHandler
。我不确定原因(我不太关注 RichFaces),但事实是,根据 文档。此异常表明您的类路径中有多个不同版本的 RichFaces JAR 文件。我会扫描并清理类路径以删除旧的。
The
HtmlToolTipTag
was introduced in RichFaces 3.1, but since RichFaces 3.2 it's apparently replaced byHtmlToolTipTagHandler
. I am not sure about the reasoning (I don't follow RichFaces that close), but fact is that theHtmlToolTipTag
is indeed not available anywhere in RichFaces 3.2 and newer according to the docs.This exception indicates that you've multiple RichFaces JAR files of different versions in your classpath. I'd scan and cleanup the classpath to get rid of the older ones.
另一种可能性是您有一个旧版本的 richfaces 的 rich.tld。
Another possibility would be that you have a rich.tld for an older version of richfaces.