Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to deploy spring-xd processor module using spring-data-jpa on xd-singlenode

I have a spring-xd processor module which has a dependecy to a project using spring-data-jpa:

pom.xml of the xd-processor module:

<dependencies>
    <dependency>
        <groupId>org.test.common</groupId>
        <artifactId>org.test.common</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </dependency>
</dependencies>

pom.xml of org.test.common:

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
</dependencies>

If I run the integration test everything works fine. But the deployment to xd-singlenode (1.2.0.RELEASE) fails with the following error:

2015-06-21T20:50:35+0200 1.2.0.RELEASE ERROR    DeploymentsPathChildrenCache-0 boot.SpringApplication - Application startup failed
java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.jpaVendorAdapter
    at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:58) ~[spring-boot-autoconfigure-1.2.3.RELEASE.jar:1.2.3.RELEASE]
...
Caused by: java.lang.IllegalArgumentException: @ConditionalOnMissingBean annotations must specify at least one bean (type, name or annotation)
...

You can checkout the full sample on github.

What am I doing wrong? Any help would be appreciated.

like image 767
domi Avatar asked Jul 06 '15 20:07

domi


1 Answers

try below solution

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>1.2.6.RELEASE</version>

click here to know more

like image 168
Sunil Sinare Avatar answered Oct 18 '22 17:10

Sunil Sinare