开发者社区> 问答> 正文

集成mongodb,需要引入哪些版本的jar包?报错

@S2JH 你好,想跟你请教个问题:最近在用s2jh做开发,需要集成mongodb,但是一直没有成功。启动报错,我感觉是jar包冲突,不知道需要引入哪些版本的jar?

展开
收起
爱吃鱼的程序员 2020-06-15 19:21:40 518 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    此类问题贴出异常信息看看

    <aclass='referer'target='_blank'>@S2JH

    org.springframework.beans.factory.BeanDefinitionStoreException:UnexpectedexceptionparsingXMLdocumentfromclasspathresource[context/context-profiles.xml];nestedexceptionisorg.springframework.beans.FatalBeanException:InvalidNamespaceHandlerclass[org.springframework.data.mongodb.repository.config.MongoRepositoryConfigNamespaceHandler]fornamespace[http://www.springframework.org/schema/data/mongo]:problemwithhandlerclassfileordependentclass;nestedexceptionisjava.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)[catalina.jar:7.0.54]
    atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)[catalina.jar:7.0.54]
    atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)[catalina.jar:7.0.54]
    atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)[catalina.jar:7.0.54]
    atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[na:1.6.0_45]
    atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[na:1.6.0_45]
    atjava.util.concurrent.FutureTask.run(FutureTask.java:138)[na:1.6.0_45]
    atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[na:1.6.0_45]
    atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[na:1.6.0_45]
    atjava.lang.Thread.run(Thread.java:662)[na:1.6.0_45]
    Causedby:org.springframework.beans.FatalBeanException:InvalidNamespaceHandlerclass[org.springframework.data.mongodb.repository.config.MongoRepositoryConfigNamespaceHandler]fornamespace[http://www.springframework.org/schema/data/mongo]:problemwithhandlerclassfileordependentclass;nestedexceptionisjava.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:139)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1433)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:185)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:207)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:182)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    ...27commonframesomitted
    Causedby:java.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atjava.lang.Class.getDeclaredConstructors0(NativeMethod)~[na:1.6.0_45]
    atjava.lang.Class.privateGetDeclaredConstructors(Class.java:2398)~[na:1.6.0_45]
    atjava.lang.Class.getConstructor0(Class.java:2708)~[na:1.6.0_45]
    atjava.lang.Class.getDeclaredConstructor(Class.java:1987)~[na:1.6.0_45]
    atorg.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:105)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:129)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    ...37commonframesomitted
    Causedby:java.lang.ClassNotFoundException:org.springframework.data.repository.config.RepositoryConfigurationExtension
    atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)~[catalina.jar:7.0.54]
    atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)~[catalina.jar:7.0.54]
    ...43commonframesomitted
    2014-8-715:35:16org.apache.catalina.core.StandardContextlistenerStart
    严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanDefinitionStoreException:UnexpectedexceptionparsingXMLdocumentfromclasspathresource[context/context-profiles.xml];nestedexceptionisorg.springframework.beans.FatalBeanException:InvalidNamespaceHandlerclass[org.springframework.data.mongodb.repository.config.MongoRepositoryConfigNamespaceHandler]fornamespace[http://www.springframework.org/schema/data/mongo]:problemwithhandlerclassfileordependentclass;nestedexceptionisjava.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
    atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
    atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
    atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
    atorg.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
    atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
    atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
    atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
    atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    atjava.util.concurrent.FutureTask.run(FutureTask.java:138)
    atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    atjava.lang.Thread.run(Thread.java:662)
    Causedby:org.springframework.beans.FatalBeanException:InvalidNamespaceHandlerclass[org.springframework.data.mongodb.repository.config.MongoRepositoryConfigNamespaceHandler]fornamespace[http://www.springframework.org/schema/data/mongo]:problemwithhandlerclassfileordependentclass;nestedexceptionisjava.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:139)
    atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1433)
    atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428)
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:185)
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:207)
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:182)
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108)
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
    ...27more
    Causedby:java.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atjava.lang.Class.getDeclaredConstructors0(NativeMethod)
    atjava.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
    atjava.lang.Class.getConstructor0(Class.java:2708)
    atjava.lang.Class.getDeclaredConstructor(Class.java:1987)
    atorg.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:105)
    atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:129)
    ...37more
    Causedby:java.lang.ClassNotFoundException:org.springframework.data.repository.config.RepositoryConfigurationExtension
    atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    ...43more
    15:35:16.353DEBUGl.s.c.w.l.ApplicationContextPostListener[36]-InvokeApplicationContextPostListenercontextInitialized 
    15:35:16.357ERRORl.s.c.w.l.ApplicationContextPostListener[106]-errordetail: 
    org.springframework.beans.factory.BeanDefinitionStoreException:UnexpectedexceptionparsingXMLdocumentfromclasspathresource[context/context-profiles.xml];nestedexceptionisorg.springframework.beans.FatalBeanException:InvalidNamespaceHandlerclass[org.springframework.data.mongodb.repository.config.MongoRepositoryConfigNamespaceHandler]fornamespace[http://www.springframework.org/schema/data/mongo]:problemwithhandlerclassfileordependentclass;nestedexceptionisjava.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)~[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)~[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)[catalina.jar:7.0.54]
    atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)[catalina.jar:7.0.54]
    atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)[catalina.jar:7.0.54]
    atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)[catalina.jar:7.0.54]
    atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[na:1.6.0_45]
    atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[na:1.6.0_45]
    atjava.util.concurrent.FutureTask.run(FutureTask.java:138)[na:1.6.0_45]
    atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[na:1.6.0_45]
    atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[na:1.6.0_45]
    atjava.lang.Thread.run(Thread.java:662)[na:1.6.0_45]
    Causedby:org.springframework.beans.FatalBeanException:InvalidNamespaceHandlerclass[org.springframework.data.mongodb.repository.config.MongoRepositoryConfigNamespaceHandler]fornamespace[http://www.springframework.org/schema/data/mongo]:problemwithhandlerclassfileordependentclass;nestedexceptionisjava.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:139)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1433)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:185)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:207)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:182)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:139)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:108)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    ...27commonframesomitted
    Causedby:java.lang.NoClassDefFoundError:org/springframework/data/repository/config/RepositoryConfigurationExtension
    atjava.lang.Class.getDeclaredConstructors0(NativeMethod)~[na:1.6.0_45]
    atjava.lang.Class.privateGetDeclaredConstructors(Class.java:2398)~[na:1.6.0_45]
    atjava.lang.Class.getConstructor0(Class.java:2708)~[na:1.6.0_45]
    atjava.lang.Class.getDeclaredConstructor(Class.java:1987)~[na:1.6.0_45]
    atorg.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:105)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:129)~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    ...37commonframesomitted
    Causedby:java.lang.ClassNotFoundException:org.springframework.data.repository.config.RepositoryConfigurationExtension
    atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)~[catalina.jar:7.0.54]
    atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)~[catalina.jar:7.0.54]
    ...43commonframesomitted
    15:35:16.371ERRORo.a.r.c.s.ActivitiServletContextListener[40]-CouldnotstarttheActivitiRESTAPI 
    2014-8-715:35:16com.sun.faces.config.ConfigureListenercontextInitialized
    信息:初始化上下文'/xp'的Mojarra2.0.3(FCSb03)
    2014-8-715:35:17com.sun.faces.spi.InjectionProviderFactorycreateInstance
    信息:JSF1048:有PostConstruct/PreDestroy注释。标有这些注释的ManagedBeans方法将表示注释已处理。
    2014-8-715:35:18org.apache.catalina.core.StandardContextstartInternal
    严重:ErrorlistenerStart
    2014-8-715:35:18org.apache.catalina.core.StandardContextstartInternal
    严重:Context[/xp]startupfailedduetopreviouserrors
    15:35:18.270INFO l.s.a.s.AuthLogonHistRefreshListener[60]-ServletContextdestroyforcesetupsessionuserlogouttime... 
    2014-8-715:35:18org.apache.catalina.core.StandardContextlistenerStop
    严重:Exceptionsendingcontextdestroyedeventtolistenerinstanceofclasslab.s2jh.auth.security.AuthLogonHistRefreshListener
    java.lang.IllegalArgumentException:[Assertionfailed]-thisargumentisrequired;itmustnotbenull
    atorg.springframework.util.Assert.notNull(Assert.java:112)
    atorg.springframework.util.Assert.notNull(Assert.java:123)
    atlab.s2jh.core.context.SpringContextHolder.getBean(SpringContextHolder.java:25)
    atlab.s2jh.auth.security.AuthLogonHistRefreshListener.contextDestroyed(AuthLogonHistRefreshListener.java:62)
    atorg.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5014)
    atorg.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5659)
    atorg.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
    atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
    atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
    atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    atjava.util.concurrent.FutureTask.run(FutureTask.java:138)
    atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    atjava.lang.Thread.run(Thread.java:662)
    15:35:18.304DEBUGl.s.c.w.l.ApplicationContextPostListener[112]-InvokeApplicationContextPostListenercontextDestroyed 
    2014-8-715:35:18org.apache.catalina.core.ApplicationContextlog
    信息:ClosingSpringrootWebApplicationContext
    15:35:18.310WARN o.s.w.c.s.XmlWebApplicationContext[1052]-ExceptionthrownfromApplicationListenerhandlingContextClosedEvent 
    java.lang.IllegalStateException:ApplicationEventMulticasternotinitialized-call'refresh'beforemulticastingeventsviathecontext:RootWebApplicationContext:startupdate[ThuAug0715:35:15CST2014];rootofcontexthierarchy
    atorg.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:347)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1049)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5014)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5659)[catalina.jar:7.0.54]
    atorg.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)[catalina.jar:7.0.54]
    atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)[catalina.jar:7.0.54]
    atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)[catalina.jar:7.0.54]
    atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)[catalina.jar:7.0.54]
    atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[na:1.6.0_45]
    atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[na:1.6.0_45]
    atjava.util.concurrent.FutureTask.run(FutureTask.java:138)[na:1.6.0_45]
    atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[na:1.6.0_45]
    atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[na:1.6.0_45]
    atjava.lang.Thread.run(Thread.java:662)[na:1.6.0_45]
    15:35:18.311WARN o.s.w.c.s.XmlWebApplicationContext[1060]-ExceptionthrownfromLifecycleProcessoroncontextclose 
    java.lang.IllegalStateException:LifecycleProcessornotinitialized-call'refresh'beforeinvokinglifecyclemethodsviathecontext:RootWebApplicationContext:startupdate[ThuAug0715:35:15CST2014];rootofcontexthierarchy
    atorg.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1057)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)[spring-web-3.2.4.RELEASE.jar:3.2.4.RELEASE]
    atorg.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5014)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5659)[catalina.jar:7.0.54]
    atorg.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)[catalina.jar:7.0.54]
    atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)[catalina.jar:7.0.54]
    atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)[catalina.jar:7.0.54]
    atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)[catalina.jar:7.0.54]
    atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)[catalina.jar:7.0.54]
    atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[na:1.6.0_45]
    atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[na:1.6.0_45]
    atjava.util.concurrent.FutureTask.run(FutureTask.java:138)[na:1.6.0_45]
    atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[na:1.6.0_45]
    atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[na:1.6.0_45]
    atjava.lang.Thread.run(Thread.java:662)[na:1.6.0_45]
    2014-8-715:35:18org.apache.catalina.core.StandardContextlistenerStop
    严重:Exceptionsendingcontextdestroyedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListener
    java.lang.IllegalStateException:BeanFactorynotinitializedoralreadyclosed-call'refresh'beforeaccessingbeansviatheApplicationContext
    atorg.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
    atorg.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090)
    atorg.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064)
    atorg.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
    atorg.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)
    atorg.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
    atorg.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5014)
    atorg.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5659)
    atorg.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
    atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
    atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
    atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    atjava.util.concurrent.FutureTask.run(FutureTask.java:138)
    atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    atjava.lang.Thread.run(Thread.java:662)

    框架本身引入了spring-data-jpa1.2.0.RELEASE,会依赖引入spring-data-commons-core-1.4.0.RELEASE,如果你再引入spring-data-mongodb要注意版本一致性。
    我看了一下springdatajpa最新稳定版本已经到1.6.X了,我会抽时间试试升级一下版本。应该是jar包冲突,但是具体哪个版本的适用,目前还没解决。

    2020-06-15 19:21:58
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
MongoDB多数据中心的方案选型之路 立即下载
阿里云MongoDB云服务构建 立即下载
饿了么高级架构师陈东明:MongoDB是如何逐步提高可靠性的 立即下载