错误信息是?
严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError:org/springframework/beans/factory/parsing/ComponentDefinition
atcom.alibaba.druid.support.spring.stat.config.DruidStatNamespaceHandler.init(DruidStatNamespaceHandler.java:24)
atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:113)
atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:86)
atorg.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:74)
atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:507)
atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:496)
atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:476)
atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:386)
atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:315)
atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
atorg.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
atorg.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
atorg.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:283)
atorg.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
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:649)
atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672)
atorg.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1861)
atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:745)
Causedby:java.lang.ClassNotFoundException:org.springframework.beans.factory.parsing.ComponentDefinition
atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
...33more
@wenshao这是以前的一个老项目,spring版本好像是2.02.0就别用了。肯定不兼容数据库连接池,为什么要绑定spring呢?
引用来自“bjydfq_163”的评论
数据库连接池,为什么要绑定spring呢?自己拉源码,修改POM,然后重新installdeploy到自己的maven私服吧。