0

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

但是当我通过运行以下命令启动 Jetty 时:

java -jar start.jar jetty.port=26335 

我收到以下错误:

12:16:51.494 - ERROR [org.springframework.web.context.ContextLoader:215] - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/home/fuiba/opt/shibboleth-idp//conf/internal.xml]; nested exception is java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) ~[spring-web-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92) ~[spring-web-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) ~[spring-context-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) ~[spring-context-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) ~[spring-context-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) ~[spring-web-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) ~[spring-web-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring-web-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:746) [jetty-server-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:238) [jetty-servlet-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1240) [jetty-webapp-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:689) [jetty-server-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:482) [jetty-webapp-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:39) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:494) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:141) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:145) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:56) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:121) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:555) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:230) [jetty-deploy-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58) [jetty-server-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96) [jetty-server-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.server.Server.doStart(Server.java:281) [jetty-server-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-7.6.11.v20130520.jar:7.6.11.v20130520]
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1259) [jetty-xml-7.6.11.v20130520.jar:7.6.11.v20130520]
        at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_24]
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1182) [jetty-xml-7.6.11.v20130520.jar:7.6.11.v20130520]
Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
        at org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source) ~[na:na]
        at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown Source) ~[na:na]
        at org.apache.xerces.dom.ParentNode.getLastChild(Unknown Source) ~[na:na]
        at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeData(Unknown Source) ~[na:na]
        at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown Source) ~[na:na]
        at org.apache.xerces.dom.CoreDocumentImpl.getDocumentElement(Unknown Source) ~[na:na]
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:87) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
        ... 43 common frames omitted

我哪里做错了?
如何包含 ElementTraversal?
感谢您的任何帮助!

此致。

4

1 回答 1

1

有双斜杠吗?在您使用的这条路径中 -

/home/fuiba/opt/shibboleth-idp* // *conf/internal.xml

于 2013-07-07T13:50:20.540 回答