【问题标题】:Spring XD -- xd-singlenode start failureSpring XD——xd-singlenode启动失败
【发布时间】:2014-10-21 00:00:04
【问题描述】:

我已将环境变量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.

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

谢谢

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-05
      • 1970-01-01
      相关资源
      最近更新 更多