joscha / play-authenticate

An authentication plugin for Play Framework 2.x (Java)
http://joscha.github.com/play-authenticate/
Other
807 stars 369 forks source link

UserServicePlugin registered multiple times during production #350

Open jyxt opened 6 years ago

jyxt commented 6 years ago

on prodution, I'm getting this warning:

[warn] application - A user service was already registered - replacing the old one (service.MyUserServicePlugin) with the new one (service.MyUserServicePlugin), however this might hint to a configuration problem if this is a production environment.

Is this a config problem? Any idea what the problem might be?

joscha commented 6 years ago

was this during local development?

jyxt commented 6 years ago

this is during production, I'm using play 2.4, it might be a play issue that it's loading plugins twice but not sure.

Also during local development, it always gives cookie error:

[debug] p.a.mvc.Cookies - Couldn't decode the Cookie header containing:

not sure if this is deadbolt or pa

joscha commented 6 years ago

if it is loading the plugin twice, that would be it I think. Usually it happens in development.