I have AuthenticationFilter and it injects UserController which is annotated with @Singleton. When I deploy my application for the first time - everything is all right, but when I redeploy application and then I try to get something from whichever REST service - often I receive:
Can not set app.auth.UserController field
app.web.rest.auth.AuthenticationFilter.userController to
app.auth.UserController$Proxy$_$$_Weld$EnterpriseProxy$
The problem still occurs even if I kill server and restart it. But after couple of restarts issue finally disappears.
Someone knows what could cause that error?