Marvin Frommhold (Migrated from SEC-2718) said:

The Spring Boot Reference Guide states that it's possible to create both executable and deployable WAR files. However, it is not possible to have an embedded LDAP which loads the LDIF file from the WAR package. When deploying the WAR file into an external servlet container loading of the LDIF file works. I created a sample Spring Boot project to demonstrate this problem.

The reason, why this does not work, is that the LdifFileLoader used by the ApacheDSContainer uses its own ClassLoader instance instead the one from the container. This can be fixed by setting the container's ClassLoader in the constructor of the LdifFileLoader.

Comment From: spring-projects-issues

Marvin Frommhold said:

I created a pull request: #130.

Comment From: spring-projects-issues

Marvin Frommhold said:

This seems to be fixed: - SEC-2725 - Spring Boot GitHub Issue 1550

Comment From: eleftherias

Closing as resolved. See comment above for details.