我按照本指南安装了 Jetty 7 并为 IdP Shibboleth 正确配置了它:https://wiki.shibboleth.net/confluence/display/SHIB2/IdPJetty7Prepare
但是当我尝试启动 Jetty 时,我得到了这个错误:
NoClassDefFoundError: org/w3c/dom/ElementTraversal
要解决此问题,我需要安装 ElementTraversal 依赖项并将其包含在我的 classpath 中。
但是我怎样才能做到这一点呢?我需要下载这门课吗 [ElementTraversal.class]或 .jar 文件?我可以把它放在哪里?在 JETTY_HOME
中?我需要导出 CLASSPATH
吗?
有人可以帮我吗?
非常感谢!
最佳答案
看起来 ElementTraversal 是 xml-apis-2.10.0.jar
的一部分,应该在您的 Shibboleth 安装中提供。
如果您关注 these instructions你也应该遵循这个步骤:
Endorse Xerces and Xalan by creating the directory JETTY_HOME/lib/endorsed/ and copy the .jar files included in the IdP source endorsed/ directory into the newly created directory.
只要你正确地复制了所有的 jar 文件,应该没问题。我的猜测是您错过了这一步 - 或者可能仅复制了名称中带有 Xalan 或 Xerces 的 jar 文件,而错过了其他两个。
关于java - NoClassDefFoundError : org/w3c/dom/ElementTraversal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17515333/