mardi 21 février 2012

Spring-security @ Autowired is null if the element <debug/> is present

Si vous avez des valeurs "null" au niveau d'injections qui devraient fonctionner, donc déclarées par un scan, voici peut-être une piste.
J'ai perdu un peu de temps sur le fait que l'élément <debug/> corrompait les injections Spring. Faute de recherche et d'infos sur cela, j'ai trouvé de façon empirique.
Je vous invite à vérifier votre applicationContext dédié à spring-security et à commenter cet élément pour tester et vérifier qu'il est bien la cause du problème.

L'élément <debug/> est déclaré dans spring-security 3.1 xsd

If you have any null values with Autowired injections that should work, so declared by a scan, maybe the following info is the solution.
I lost a little time on the fact that the element <debug/> corrupted Spring injections. I didn't find info on this, I found step by step.
I invite you to check your applicationContext dedicated to spring-security and comment this element to test and verify that it is causing the problem.

This élément <debug/> is declared in the spring-security 3.1 xsd

Aucun commentaire:

Enregistrer un commentaire