2

I have set the environment variable spring.profiles.active to "qa" which is the profile in application.yml file which i want to activate.

But after setting this environment variable, and starting Sprind XD in xd-singlenode, it throws me the following exception

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.

What might be the exception ?? Any help will be greatly appreciated.

Thanks

4

1 回答 1

3

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

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

于 2014-08-27T12:23:21.470 回答