Show your imports, which of the annotations are CDI and which JSF?
The JSF @ManagedBean API says
If the value of the
true, and the
managed-bean-scopevalue is "application", the runtime must instantiate this class when the application starts.
but then I think the @ApplicationScoped must be JSF and not CDI. @Named I guess is CDI but it shouldn't affect the issue.
Message was edited by: Nicklas Karlsson
Okay I changed it to @Startup@Singleton and it works.
However, I am wondering why it is not working with
Oh damned;) Yes you are right. I have had javax.enterprise.context.ApplicationScoped instead of the JSF-counterpart. I make a mistake with it again.