Oracle Weblogic Server (MOSC)

MOSC Banner

Compatibility Issue: Spring Boot 3.4.2/Java 21 on WebLogic 14.1.2 – REST Endpoints Returning 404

I am experiencing an issue deploying our application on WebLogic Server 14.1.2 using Java 21 and Spring Boot 3.4.2.

Initially, I encountered a ClassNotFoundException for jakarta.servlet.jsp.tagext.DynamicAttributes during deployment. I resolved this by adding the following dependencies to our pom.xml:

<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.1.0</version>
</dependency>
<dependency>
<groupId>jakarta.servlet.jsp</groupId>
<artifactId>jakarta.servlet.jsp-api</artifactId>
<version>3.1.1</version>
</dependency>

After these changes, the application deploys successfully, and static resources (like an index.html in the webapp folder) are served without issues. However, any Spring Boot REST endpoints (for example, one mapped at

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center