I have a job of deltaspike and this needs the facescontext to obtain information from the web.xml and load freemarker templates.
It is possible to generate a FacesContext? That alternatives I have ?.
This is a question with the same situation with an example :
Yes, it uses to be possible to get the FacesContext.
I use FacesContext facesContext = FacesContext.getCurrentInstance(); to get it.
If you use CDI it can produce Faces Context for you, but what is your problem?