Spring XD - xd-singlenode启动失败

时间:2014-08-27 11:54:52

标签: spring spring-batch spring-integration spring-boot spring-xd

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

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

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.

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

由于

1 个答案:

答案 0 :(得分:3)

这是真的。由于您不使用hsqldbServer配置文件,因此您必须自己定义dataSource bean。请参阅hsql-datasource.xml

或者只是将这些个人资料设为active