我正在尝试在Jboss 6.2中部署我的战争,但在启动Jboss时遇到异常。请帮我解决这个问题:
15:33:42,714 ERROR [org.apache.catalina.core.ContainerBase。[jboss.web]。[default-host]。[/ authService]](ServerService Thread Pool - 51)JBWEB000287:异常发送上下文初始化事件到类的监听器实例org.springframework.web.context.ContextLoaderListener:java.lang.UnsupportedOperationException:此解析器不支持规范" null"版本" null" 在javax.xml.parsers.DocumentBuilderFactory.setSchema(未知来源)[rt.jar:1.6.0_26] 在__redirected .__ DocumentBuilderFactory.setSchema(__ DocumentBuilderFactory.java:194)[jboss-modules.jar:1.3.0.Final-redhat-2] 在org.opensaml.xml.parse.BasicParserPool.initializePool(BasicParserPool.java:510)[xmltooling-1.3.2.jar:] 在org.opensaml.xml.parse.BasicParserPool。(BasicParserPool.java:138)[xmltooling-1.3.2.jar:] 在org.opensaml.xml.XMLConfigurator。(XMLConfigurator.java:87)[xmltooling-1.3.2.jar:1.3.2] 在org.opensaml.xml.XMLConfigurator。(XMLConfigurator.java:73)[xmltooling-1.3.2.jar:1.3.2] at org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:195)[opensaml-2.5.3.jar:1.0.0.RC2] at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:91)[opensaml-2.5.3.jar:1.0.0.RC2] 在org.opensaml.PaosBootstrap.bootstrap(PaosBootstrap.java:27)[spring-security-saml2-core-1.0.0.RC2.jar:1.0.0.RC2] 在org.springframework.security.saml.SAMLBootstrap.postProcessBeanFactory(SAMLBootstrap.java:42)[spring-security-saml2-core-1.0.0.RC2.jar:1.0.0.RC2] 在org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)[spring-context-3.2.9.RELEASE.jar:3.2.9.RELEASE] 在org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:684)[spring-context-3.2.9.RELEASE.jar:3.2.9.RELEASE] 在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)[spring-context-3.2.9.RELEASE.jar:3.2.9.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE] 在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)[spring-web-3.2.9.RELEASE.jar:3.2.9.RELEASE] 在org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1] 在org.apache.catalina.core.StandardContext.start(StandardContext.java:3777)[jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1] 在org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156)[jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14] 在org.jboss.as.web.deployment.WebDeploymentService.access $ 000(WebDeploymentService.java:60)[jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14 ] 在org.jboss.as.web.deployment.WebDeploymentService $ 1.run(WebDeploymentService.java:93)[jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14 ] at java.util.concurrent.Executors $ RunnableAdapter.call(Unknown Source)[rt.jar:1.6.0_26] at java.util.concurrent.FutureTask $ Sync.innerRun(Unknown Source)[rt.jar:1.6.0_26] at java.util.concurrent.FutureTask.run(Unknown Source)[rt.jar:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(Unknown Source)[rt.jar:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source)[rt.jar:1.6.0_26] 在java.lang.Thread.run(未知来源)[rt.jar:1.6.0_26] 在org.jboss.threads.JBossThread.run(JBossThread.java:122)
答案 0 :(得分:0)
如果您的WEB-INF / lib或jboss lib中有不同版本的spring jar,可能会导致上述问题。试着删除那些。