Skip to content

ApplicationServletEnvironment is no longer configured in war deployments #48254

@pnoe

Description

@pnoe

Hi,
I am trying to upgrade a spring boot web mvc 3.5.8 application to 4.0.0 (jdk 25, tomcat 11)
I have the configuration of posgresql in an external tomcat context.xml file :

<Parameter name="spring.datasource.url" value="jdbc:postgresql://localhost:5432/ruchesdev" />
<Parameter name="spring.datasource.username" value="postgres" />
<Parameter name="spring.datasource.password" value="postgres" />	

with spring boot 3.5.8 it works but not with spring boot 4.0.0, to make it work I am obliged to put this configuration in application.properties :

spring.datasource.url=jdbc:postgresql://localhost:5432/ruchesdev
spring.datasource.username=postgres
spring.datasource.password=postgres

The error in eclipse console is :

APPLICATION FAILED TO START
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class

In fact I have the same problem with other parameters like :

<Parameter name="spring.jpa.properties.hibernate.id.db_structure_naming_strategy"
		value="single" />

Thanks for your help,

Pierre

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions