Thanks for your advice, @geoand and @zforgo.
The beans were not properly registered. Combining your solutions solved the issue. Everything works fine now !
Thank you for your help!