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

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐