jndiname是 jdbc/rb ,
数据源配置如下:
启动war包应用,报如下错误,请哪位高手指点,谢谢!
[16-9-2 14:43:40:828 CST] 0000001e InternalDB2Un W DSRA8200W: DataSource 配置:DSRA8020E: 警告:在 DataSource 类 com.ibm.db2.jcc.DB2ConnectionPoolDataSource 中不存在属性“enableClientAffinitiesList”。
[16-9-2 14:43:40:831 CST] 0000001e DSConfigurati W DSRA8200W: DataSource 配置:DSRA8020E: 警告:在 DataSource 类 com.ibm.db2.jcc.DB2ConnectionPoolDataSource 中不存在属性“enableClientAffinitiesList”。
[16-9-2 14:43:40:839 CST] 0000001e ConnectionFac E J2CA0009E: 尝试将资源 jdbc/rb 使用的 ManagedConnectionFactory 类 com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl 实例化时发生异常:java.lang.IllegalArgumentException: 参数类型不匹配
重启又换错误了
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
... 154 more
收起