NoClassDefFoundError:org / w3c / dom / ElementTraversal [英] NoClassDefFoundError: org/w3c/dom/ElementTraversal

查看:334
本文介绍了NoClassDefFoundError:org / w3c / dom / ElementTraversal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照本指南安装了Jetty 7并为 IdP Shibboleth 配置了正确的选项: https://wiki.shibboleth.net/confluence/display/SHIB2/IdPJetty7Prepare

I installed Jetty 7 and configured it correcty for IdP Shibboleth following this guide: https://wiki.shibboleth.net/confluence/display/SHIB2/IdPJetty7Prepare

但是当我尝试启动Jetty时,我得到了这个错误:

But when i try to start Jetty I get this error:

NoClassDefFoundError: org/w3c/dom/ElementTraversal

要解决此问题,我需要安装 ElementTraversal 依赖项并将其包含在我的类路径中。
但我怎么能做到这一点?我是否需要下载此类 [ElementTraversal.class] .jar 文件?我可以放在哪里?在 JETTY_HOME ?我是否需要导出 CLASSPATH

To resolve this issue i need to install the ElementTraversal dependency and include it on my classpath.
But how can i accomplish this? Do i need to download this Class [ElementTraversal.class] or a .jar file? and where i can place it? in the JETTY_HOME? Do I need to export the CLASSPATH?

有人可以帮助我吗?

谢谢这么多!

Can someone help me?
Thank you so much!

推荐答案

看起来ElementTraversal是 xml-apis-2.10.0.jar的一部分应该在您的Shibboleth安装中提供。

It looks like ElementTraversal is part of xml-apis-2.10.0.jar which should have been provided with your Shibboleth installation.

因此,如果您关注这些说明你也应该遵循这一步:

So if you were following these instructions you should also have followed this step:


通过创建目录JETTY_HOME / lib / endorsed /来支持Xerces和Xalan,并将IdP源endorsed /目录中包含的.jar文件复制到新创建的目录中。

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文件,而错过了其他两个。

So long as you copied all the jar files appropriately, it should be okay. My guess is that you missed out that step - or perhaps only copied the jar files with Xalan or Xerces in the name, and missed the other two.

这篇关于NoClassDefFoundError:org / w3c / dom / ElementTraversal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆