user3304825
user3304825

Reputation: 107

Running Spring Boot container fails with File not found exception for hadoop-core-1.2.1

This question has been posted before but I am not sure if it was ever resolved. I am facing exactly the same issue as (19608050 - same title). I am using spring-boot-started-web:1.1.0.RC1 ,spring-data-hadoop 1.0.2.RELEASE and hbase 0.94.3. I can see the hadoop-core-1.2.1 jar under the lib\ in the jarred file which I deploy.

I have a small sample project which I posted on: https://github.com/klopes/test-spring-boot-hadoop.git. It compiles (and unit tests worked successfully) but it fails to deploy.

If I start the app by clicking on the main class in my IDE, it runs without any exceptions and the jar is loaded, also gradle runBoot works just fine. Seems like a spring boot class loader bug.

Upvotes: 0

Views: 1072

Answers (2)

Ravindranath Akila
Ravindranath Akila

Reputation: 97

@EnableAutoConfiguration(exclude = {VelocityAutoConfiguration.class})

Upvotes: 1

Dave Syer
Dave Syer

Reputation: 58114

You are using a very old version of Spring Boot. Your app runs for me with Spring Boot 1.1.0.BUILD-SNAPSHOT, at least the context starts with no errors. There are no test cases so I'm not sure if it's actually working though.

Upvotes: 0

Related Questions