-1

I'm working on a Spring Boot application using IntelliJ IDEA. I can run the application locally with a Maven run configuration using the goal spring-boot:run, and it works as expected, I have also colleagues that are running the application with the Spring Boot plugin configuration and it works perfectly.

enter image description here

The problem is that when I launch the application with the Application configuration:

enter image description here

it gives me the following errors:

-- [           main] o.a.c.c.StandardService                  : Stopping service [Tomcat]
2025-11-21 12:46:19.030  INFO 77224 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger : 

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-11-21 12:46:19.203 ERROR 77224 --- [           main] o.s.b.SpringApplication                  : Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 's3ServiceImpl': Unsatisfied dependency expressed through field 's3Client': Error creating bean with name 's3client' defined in class path resource [com....configuration/S3Configuration.class]: Failed to instantiate [com.amazonaws.services.s3.AmazonS3]: Factory method 's3client' threw exception with message: org/apache/http/protocol/HttpRequestExecutor

...

Caused by: java.lang.ClassNotFoundException: org.apache.http.protocol.HttpRequestExecutor...

Why am I having errors depending on the configuration? How can the Application Configuration run be fixed?

2
  • ClassNotFoundException looks like a dependency issue. Commented Nov 24 at 7:59
  • @M.Deinum so why do I not have the same dependency issue when starting the app with the maven conf or with the plugin spring boot config? Commented Nov 24 at 8:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.