1

我已将环境变量spring.profiles.active设置为"qa",这是我想要激活的application.yml文件中的配置文件。Spring XD - xd-singlenode启动失败

但是设置这个环境变量,并在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. 

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

谢谢

回答

2

的确如此。由于您不使用hsqldbServer配置文件,因此您必须定义您自己的dataSource bean。见hsql-datasource.xml

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

+0

谢谢你..现在工作得很好。 ! – VinniK 2014-08-27 13:56:33