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

Last updated on FEBRUARY 21, 2017

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

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms