After upgrading from Spring Boot 1.3.7 to 1.4.0, we can no longer run our application as a single jar assembly using the Spring Boot Maven plugin. Our application is a small REST interface using Jersey and Jetty. We use Maven and our pom file is pretty standard Spring Boot.
We can still run the application using mvn spring-boot:run and from within Eclipse, but when launched as a jar of Jersey, the ResourceFinder complains that it cannot find .jar!/BOOT-INF/classes .
When I unpack the jar, the BOOT-INF/classes folder is present and contains the expected classes and resources.
Any help was appreciated.
2016-08-10 14:58:31.162 ERROR 16071 --- [ main] osboot.SpringApplication : Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jerseyConfig' defined in URL [jar:file:/acmesource/acme/acme-core/acme-core-api/target/acme-core-api-0.1 SNAPSHOT.jar!/BOOT-INF/classes!/com/acme/core/api/JerseyConfig.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.acme.core.api.JerseyConfig]: Constructor threw exception; nested exception is org.glassfish.jersey.server.internal.scanning.ResourceFinderException: java.io.FileNotFoundException: /acmesource/acme/acme-core/acme-core api/target/acme-core-api-0.1-SNAPSHOT.jar!/BOOT-INF/classes (No such file or directory)
spring-boot spring-boot-maven-plugin
oleb
source share