Home > database >  Multiple data source connection
Multiple data source connection

Time:09-24

Under Caused by: org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'sqlSessionFactory defined in the file [E: \ yz - soft - new \. Metadata \. Plugins \ org eclipse WST) server. The core \ tmp3 \ wtpwebapps \ jazfcg_demo \ WEB - INF \ classes \ spring \ spring - mybatis. XML] : always resolve a reference to the bean' dynamicDataSource while setting the bean property 'dataSource'; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'dynamicDataSource defined in the file [E: \ yz - soft - new \. Metadata \. Plugins \ org eclipse WST) server. The core \ tmp3 \ wtpwebapps \ jazfcg_demo \ WEB - INF \ classes \ spring \ spring - mybatis. XML] : always resolve a reference to the bean' dataSource 'while setting the bean property' targetDataSources with key [TypedStringValue: value [dataSource], target type [class Java. Lang. String]]. Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'dataSource' defined in the file [E: \ yz - soft - new \. Metadata \. Plugins \ org eclipse WST) server. The core \ tmp3 \ wtpwebapps \ jazfcg_demo \ WEB - INF \ classes \ spring \ spring - mybatis. XML] : Error setting property values. Nested exception is org. Springframework. Beans. NotWritablePropertyException: Invalid property 'jdbcDriver of bean class [org.apache.com mons. DBCP. BasicDataSource] : bean property' jdbcDriver 'is not writable or has an Invalid setter method. Does the parameter type of the setter match the return type of the getter?
The at org. Springframework. Beans. Factory. Support. BeanDefinitionValueResolver. ResolveReference (BeanDefinitionValueResolver. Java: 359) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. BeanDefinitionValueResolver. ResolveValueIfNecessary (BeanDefinitionValueResolver. Java: 108) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. ApplyPropertyValues (AbstractAutowireCapableBeanFactory. Java: 1477) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. PopulateBean (AbstractAutowireCapableBeanFactory. Java: 1222) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 537) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 476) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory $1. GetObject (AbstractBeanFactory. Java: 303) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 230) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 299) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 194) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. BeanDefinitionValueResolver. ResolveReference (BeanDefinitionValueResolver. Java: 351) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
. 50 common frames omitted
Under Caused by: org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'dynamicDataSource defined in the file [E: \ yz - soft - new \. Metadata \. Plugins \ org eclipse WST) server. The core \ tmp3 \ wtpwebapps \ jazfcg_demo \ WEB - INF \ classes \ spring \ spring - mybatis. XML] : always resolve a reference to the bean' dataSource 'while setting the bean property' targetDataSources with key [TypedStringValue: value [dataSource], target type [class Java. Lang. String]]. Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'dataSource' defined in the file [E: \ yz - soft - new \. Metadata \. Plugins \ org eclipse WST) server. The core \ tmp3 \ wtpwebapps \ jazfcg_demo \ WEB - INF \ classes \ spring \ spring - mybatis. XML] : Error setting property values. Nested exception is org. Springframework. Beans. NotWritablePropertyException: Invalid property 'jdbcDriver of bean class [org.apache.com mons. DBCP. BasicDataSource] : bean property' jdbcDriver 'is not writable or has an Invalid setter method. Does the parameter type of the setter match the return type of the getter?
The at org. Springframework. Beans. Factory. Support. BeanDefinitionValueResolver. ResolveReference (BeanDefinitionValueResolver. Java: 359) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
The at org. Springframework. Beans. Factory. Support. BeanDefinitionValueResolver. ResolveValueIfNecessary (BeanDefinitionValueResolver. Java: 108) ~ [spring - beans - 4.1.6. The jar: 4.1.6. RELEASE]
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related