druid分布式事务的配置后应用启动不了 -凯发k8国际

0 0

druid分布式事务的配置后应用启动不了5

使用atomikos事物管理搞定了以com.atomikos.jdbc.atomikosdatasourcebean方式配置的分布式事物(datasource配置如下),但是使用alibaba的druid缺导致服务启动不了.





${url}
${username}
${password}


.......


以下是druid的配置,结合atomikos了




































以下是启动日志

****  info - 2015-01-06 11:43:30,249 - atomikosdatasourebean 'mysql_1': init... - com.atomikos.logging.slf4jlogger.loginfo(slf4jlogger.java:16) main 4472
****  info - 2015-01-06 11:43:30,260 - atomikosdatasourebean 'mysql_1': initializing with [ xadatasourceclassname=null, uniqueresourcename=mysql_1, maxpoolsize=30, minpoolsize=10, borrowconnectiontimeout=30, maxidletime=60, reaptimeout=0, maintenanceinterval=60, testquery=null, xaproperties=[], logintimeout=0, maxlifetime=0] - com.atomikos.logging.slf4jlogger.loginfo(slf4jlogger.java:16) main 4483
**** debug - 2015-01-06 11:43:30,273 - configuration: adding resource mysql_1 - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4496
**** debug - 2015-01-06 11:43:30,273 - installing recovery service on resource mysql_1 - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4496
**** debug - 2015-01-06 11:43:30,274 - mysql_1: refreshing xaresource... - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4497
****  info - 2015-01-06 11:43:30,276 - new update(s) found: 2.4.7 [http://www.terracotta.org/confluence/display/release/release notes ehcache core 2.4]. please check http://ehcache.org for the latest version. - net.sf.ehcache.util.updatechecker.docheck(updatechecker.java:98) net.sf.ehcache.cachemanager@4e44ac6a 4499
****  info - 2015-01-06 11:43:30,547 - mysql_1: refreshed xaresource - com.atomikos.logging.slf4jlogger.loginfo(slf4jlogger.java:16) main 4770
**** debug - 2015-01-06 11:43:30,547 - recovery initiated for resource mysql_1 with branchidentifier 10.144.32.149.tm - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4770
**** debug - 2015-01-06 11:43:30,550 - endrecovery() done for resource mysql_1 - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4773
**** debug - 2015-01-06 11:43:30,550 - configuration: added resource mysql_1 - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4773
**** debug - 2015-01-06 11:43:30,559 - atomikos connection pool 'mysql_1': initializing... - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4782
**** debug - 2015-01-06 11:43:30,588 - an atomikosxapooledconnection with a sessionhandlestate with 0 context(s): registering listener atomikos connection pool 'mysql_1' - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4811
**** debug - 2015-01-06 11:43:30,605 - an atomikosxapooledconnection with a sessionhandlestate with 0 context(s): registering listener atomikos connection pool 'mysql_1' - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4828
**** debug - 2015-01-06 11:43:30,624 - an atomikosxapooledconnection with a sessionhandlestate with 0 context(s): registering listener atomikos connection pool 'mysql_1' - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4847
**** debug - 2015-01-06 11:43:30,638 - an atomikosxapooledconnection with a sessionhandlestate with 0 context(s): registering listener atomikos connection pool 'mysql_1' - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4861
**** debug - 2015-01-06 11:43:30,657 - an atomikosxapooledconnection with a sessionhandlestate with 0 context(s): registering listener atomikos connection pool 'mysql_1' - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4880
**** debug - 2015-01-06 11:43:30,677 - an atomikosxapooledconnection with a sessionhandlestate with 0 context(s): registering listener atomikos connection pool 'mysql_1' - com.atomikos.logging.slf4jlogger.logdebug(slf4jlogger.java:20) main 4900
**** debug - 2015-01-06 11:43:30,696 - an atomikosxapooledconnection with a sessionhandlestate with 0 context(s): registering listener atomikos connection pool 'mysql_1'
 
2015年1月06日 11:51

1个答案

0 0

重启电脑试试;

2015年12月14日 22:28

相关推荐

    spring druid atomikos分布式事务,多数据源切换!其中包括配置文件

    使用spring atomikos druid配置的分布式事务demo,两种数据源配置方式都可以,使用junit测试没问题,案例中使用的mysql数据库是8.0.11版本,版本不同请自行修改pom.xml和jdbc.properties

    这是一个使用spring druid atomikos的分布式事务demo,若有错误请指出

    atomikos实现多数据源支持分布式事务管理(spring、tomcat、jta) 结合spring 和durid进行配置,

    spring boot druid mybatis实现jta分布式事务

    druid监控分布式凯发k8国际娱乐官网入口的解决方案.docx

    本用例基于 spring boot druid mybatis 配置多数据源,并采用 jta 实现分布式事务。

    spring druid atomikosdatasource实现多数据源切换及分布式事务控制

    本教程提供的分布式事务凯发k8国际娱乐官网入口的解决方案的设计思路在所有微服务架构项目中都适用,与编程语言无关,教程中会重点讲解方案的设计思路。 教程中的样例项目基于龙果学院开源的微支付系统进行实现,使用dubbo作为服务化框架,...

    myeclipse开发,导入即可用,可以参阅http://www.cnblogs.com/shamo89/p/7326718.html

    druiddatasource 配置文档

    最新版的druid和旧版在filter配置方面有些不同,以下是旧版druid中配置filter: spring: ##数据库连接信息 datasource: url: jdbc:mysql://localhost:3306/young username: root password: root driver-class...

    springboot mybatis druid atomikos 多数据源,分布式事务,集成websocket,redis,swagger2

    druid 是一个用于大数据实时查询和分析的高容错、高性能开源分布式系统,旨在快速处理大规模的数据,并能够实现快速查询和分析。 druid 具有以下主要特征: 为分析而设计——druid 是为 olap 工作流的探索性分析...

    本配置文件是讲怎样在springboot环境下配置druid数据源,期中包括了一些高级配置,这里是配置文件,另外还需要写配置类,具体请移步本人博客springboot整合druid数据源查看

    这是一个配置类,将配置文件中druid的高级配置属性注入到容器中,并且配置了管理后台的servlet、一个web监控的filter

    基于 springboot 多数据源 动态数据源 主从分离 快速启动器 支持分布式事务。一个基于springboot的快速集成多数据源的启动器。支持 数据源分组 ,适用于多种场景 纯粹多库 读写分离 一主多从 混合模式。支持数据库...

    本教程提供的分布式事务凯发k8国际娱乐官网入口的解决方案的设计思路在所有微服务架构项目中都适用,与编程语言无关,教程中会重点讲解方案的设计思路。 教程中的样例项目基于龙果学院开源的微支付系统进行实现,使用dubbo作为服务化框架,...

    5、druid配置文件详细介绍以及示例 网页地址:https://blog.csdn.net/chenwewi520feng/article/details/130802925 本文主要介绍了druid的配置文件内容,以及以示例说明配置文件的使用。

    springboot,idea,演示了使用druid数据源监控页面的配置和使用

global site tag (gtag.js) - google analytics
网站地图