开发者社区> 问答> 正文

druid tomcat 启动数据源直接关闭?报错

我用的是spring2.5 druid1.0.9 在我加入activiti配置以后druid的数据源直接关闭

具体报错信息如下

[INFO] <2015-05-05 08:38:40:654> DruidDataSource::init: {dataSource-1} inited
[INFO] <2015-05-05 08:38:43:831> DefaultSingletonBeanRegistry::destroySingletons: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5e65ab77: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,SpringContextUtil,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,txAdvice,jdbcTemplate,baseDao,demoService,attendanceService,customerService,deptService,groupService,loginService,reportService,userService,visitService,workService,viService,mobileLoginService,mobileAttendanceService,mobileVisitService,mobileUserService,mobileCustomerService,importService,uuidGenerator,org.springframework.transaction.config.internalTransactionAdvisor,processEngineConfiguration,processEngine,repositoryService,runtimeService,formService,identityService,taskService,historyService,managementService]; root of factory hierarchy
[INFO] <2015-05-05 08:38:43:847> DruidDataSource::close: {dataSource-1} closed
2015-5-5 8:38:43 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
	at com.boco.init.ActionServlet.init(ActionServlet.java:31)
	at javax.servlet.GenericServlet.init(GenericServlet.java:212)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1213)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)



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

    问题已经解决了是spring版本的问题,换了高版本的spring就搞定了

    2020-06-14 16:15:30
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载