I want to use spring boot to start my application ,but after i add some relative jar at pom.xml,it return this error:and i thank may be it caused by some conflict jars?
I had the same issue with :
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
As per the previous posts the solution was only to add :
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId>
</dependency>
The solution can vary based on actual incompatibility root cause. The best way how to investigate such the issue is to follow this line:
Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
and put breakpoint into constructor of class 'TypeNotPresentExceptionProxy' (there is only one).
After execution in debug mode you should see what exactly is wrong and based on your findings you can decide what to do (add dependency, exclude autoconfig, ...)
In my specific case the breakpoint revealed this:
java.lang.ClassNotFoundException: org.springframework.integration.config.IntegrationManagementConfigurer
As the solution I decided to exclude 'IntegrationAutoConfiguration' like this:
@SpringBootApplication(exclude = IntegrationAutoConfiguration.class)
I had a same problem with this error :
Error creating bean with name 'org.apache.cxf.spring.boot.autoconfigure.CxfAutoConfiguration': Initialization of bean failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
I used below dependency in my POM.xml and the problem was solved :
<!-- https://mvnrepository.com/artifact/org.apache.cxf/cxf-spring-boot-autoconfigure -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-autoconfigure</artifactId>
<version>3.2.1</version>
</dependency>
I had the very same exception but my spring-boot-starter-parent was version 1.3.3, as below
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.3.RELEASE</version>
</parent>
The exception showd up as I was upgrading to 1.4.1
I had to lose the bad dependency:
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
<version>2.1.4.RELEASE</version>
</dependency>
And replace it with the dependency below as per the Release notes of Spring Boot 1.4.0
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId>
</dependency>
I had the same issue with spring-boot-starter-parent 2.0.0.M6.
was to remove
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
<version>3.1.11</version>
</dependency>
and include
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId>
</dependency>
instead.
The problem for me was simply that I hadn't cleaned my project before running verify, after having made some significant changes.