首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >弹簧XD -xd-单管启动故障

弹簧XD -xd-单管启动故障
EN

Stack Overflow用户
提问于 2014-08-27 11:54:51
回答 1查看 543关注 0票数 2

我已经将环境变量spring.profiles.active设置为"qa",这是要激活的application.yml文件中的概要文件。

但是,在设置这个环境变量并在xd-singlenode中启动Sprind XD之后,它将抛出以下异常

代码语言:javascript
复制
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.xd.dirt.plugins.job.DistributedJobService#0' defined in class path resource [META-INF/spring-xd/batch/batch.xml]: Cannot resolve reference to bean 'jobExecutionDao' while setting constructor argument; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobExecutionDao' defined in class path resource [META-INF/spring-xd/batch/batch.xml]: Invocation of init method failed; 
nested exception is java.lang.IllegalArgumentException: Could not inspect meta data for database type.  You have to supply it explicitly.

什么可能是例外??任何帮助都将不胜感激。

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-08-27 12:23:21

那是真的。由于您不使用hsqldbServer配置文件,所以必须定义您自己的dataSource bean。见hsql-datasource.xml

或者将这两个配置文件都设置为active

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25526509

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档