This content has been marked as final.
Show 3 replies
-
1. Re: WELD-001303: No active contexts for scope type javax.enterprise.context.ApplicationScoped
tremes Oct 6, 2016 1:38 AM (in response to brucespringfield)Hi,
It means that ApplicationContext is not active in a "place" (method) where you are using the injected instance. Can you please post more details about these classes so we can take a look and probably elaborate little bit more? Thanks
-
2. Re: WELD-001303: No active contexts for scope type javax.enterprise.context.ApplicationScoped
mkouba Oct 6, 2016 2:29 AM (in response to brucespringfield)Given that the application context is always active in Weld, it seems the container is shut down when you try to invoke a method on an injected
@ApplicationScoped
bean. -
3. Re: WELD-001303: No active contexts for scope type javax.enterprise.context.ApplicationScoped
brucespringfield Oct 11, 2016 9:54 AM (in response to mkouba)I removed the annotation @ApplicationScoped and no longer have the error. It seems like a workable solution for the moment.