qq_31936975
qq_31936975
2019-03-21 17:34

本地项目发布到weblogic12c没问题 环境上报错不能注入datasource 报错如下

  • oracle
  • java
  • linux

logic.application.ModuleException: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'dataSource' defined in file
[/data/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/ServerPath/sales/WEB-INF/classes/spring/dataAccessContext-hibernate.xml]:
1 constructor arguments specified but no matching constructor found in bean 'dataSource'
(hint: specify index and/or type arguments for simple parameters to avoid type ambiguities):
org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'dataSource' defined in file
[/data/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/ServerPath/sales/WEB-INF/classes/spring/dataAccessContext-hibernate.xml]:
1 constructor arguments specified but no matching constructor found in bean 'dataSource' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)

Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file
[/data/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/ServerPath/sales/WEB-INF/classes/spring/dataAccessContext-hibernate.xml]:
1 constructor arguments specified but no matching constructor found in bean 'dataSource' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:683)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:621)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
Truncated. see log file for complete stacktrace

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答