My Oracle Support Banner

Spring Boot application doesn't work in WebLogic but works in Tomcat (Doc ID 2235195.1)

Last updated on JULY 07, 2023

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

Spring Boot application fails to start with below error:

 

Changes

Depending on the dependencies, weblogic spring boot expects an application.properties file in /WEB-INF/classes and it is defined in below spring boot document.

https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html

24.3 Application property files
SpringApplication will load properties from application.properties files in the following locations and add them to the Spring Environment:

A /config subdirectory of the current directory.
The current directory
A classpath /config package
The classpath root

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.