Relative Content

Tag Archive for hibernatecditomcat10

CDI is null with upgraded dev stack

I am switching from a single to a multi-tenant database. I wanted to make use of the ‘@TenantId’ annotation in hibernate 6. In order to use hibernate 6 I needed to upgrade from java ee to jakarta ee. Which also required me to update Tomcat from 9 to 10.1.24. In addition I also upgraded from Java 8 to 21. Everything is working for me except for context dependency injection (CDI) which is RETURNING NULL to anything I’m trying to inject.