2 lincciu lincciu 于 2016.03.25 21:19 提问

druid+Atomikos+mysql+tomcat启动无响应也不报错

日志停在这然后就没然后了

2016-03-22 21:55:00,850 [// - - ] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'formAuthenticationFilter' of type [class org.apache.shiro.web.filter.authc.FormAuthenticationFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2016-03-22 21:55:01,136 [// - - ] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
2016-03-22 21:55:01,137 [// - - ] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'xaDataSource1' of type [class com.alibaba.druid.pool.xa.DruidXADataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

配置文件如下

<?xml version="1.0" encoding="UTF-8"?>

















<!-- 最大空闲时间 -->














<!-- 最大空闲时间 -->





select 1

<bean id="sqlSessionFactory1" class="org.mybatis.spring.SqlSessionFactoryBean">







<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">







<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">  
    <property name="dataSource" ref="dataSourceOne" />  
</bean> 


<bean id="atomikosTransactionManager" class="com.atomikos.icatch.jta.UserTransactionManager"
      init-method="init" destroy-method="close">
    <property name="forceShutdown">
        <value>true</value>
    </property>
</bean>

<bean id="atomikosUserTransaction" class="com.atomikos.icatch.jta.UserTransactionImp">
    <property name="transactionTimeout" value="300" />
</bean>

<bean id="transactionManager"
      class="org.springframework.transaction.jta.JtaTransactionManager">
    <property name="transactionManager">
        <ref bean="atomikosTransactionManager"/>
    </property>
    <property name="userTransaction">
        <ref bean="atomikosUserTransaction"/>
    </property>
    <!-- 必须设置,否则程序出现异常 JtaTransactionManager does not support custom isolation levels by default -->
    <property name="allowCustomIsolationLevels" value="true"/>

</bean>

1个回答

devmiao
devmiao   Ds   Rxr 2016.03.25 23:53
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!