Skip to content

fix(mcp): upgrade Spring Boot to 4.0.0 in brave-chatbot#96

Open
kushalsharma1218 wants to merge 1 commit intospring-projects:mainfrom
kushalsharma1218:fix/issue-86-minimal-fix-v2
Open

fix(mcp): upgrade Spring Boot to 4.0.0 in brave-chatbot#96
kushalsharma1218 wants to merge 1 commit intospring-projects:mainfrom
kushalsharma1218:fix/issue-86-minimal-fix-v2

Conversation

@kushalsharma1218
Copy link

Resolves ClassNotFoundException for RetryTemplate (#86) caused by Spring AI 2.0.0-SNAPSHOT requirements.

Resolves ClassNotFoundException for RetryTemplate (spring-projects#86)
caused by Spring AI 2.0.0-SNAPSHOT requirements.

Signed-off-by: Kushal.Sharma1 <kushal.sharma1@dpwrold.com>
@kushalsharma1218 kushalsharma1218 force-pushed the fix/issue-86-minimal-fix-v2 branch from 2f6b1f3 to ec6318d Compare February 23, 2026 07:53
@kushalsharma1218
Copy link
Author

  1. Problem
    Running the brave-chatbot with Spring Boot 3.4.5 caused a startup failure due to a dependency conflict with Spring AI 2.0.0-SNAPSHOT, which requires classes from newer Spring libraries.
Reproduction Error:
java
java.lang.IllegalStateException: Error processing condition on org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.retryTemplate
Caused by: java.lang.ClassNotFoundException: org.springframework.core.retry.RetryTemplate
  1. The Minimal Fix
    Upgraded the spring-boot-starter-parent version from 3.4.5 to 4.0.0 specifically in the brave-chatbot module. This aligns the transitive dependencies and provides the required RetryTemplate class.

Change in -> pom.xml

<parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
-    <version>3.4.5</version>
+    <version>4.0.0</version>
     <relativePath /> <!-- lookup parent from repository -->
 </parent>

  1. Verification (The Success)
    After the upgrade, the application starts successfully and initializes the MCP client without errors.

Successful Startup Log:

.   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v4.0.0)
... INFO ... o.s.ai.mcp.samples.brave.Application     : Starting Application...
... INFO ... i.m.c.transport.StdioClientTransport     : MCP server started

@kushalsharma1218
Copy link
Author

kushalsharma1218 commented Feb 23, 2026

@joshlong @claude @trevormarshall @sdeleuze @tzolov please check this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant