Puh, stupid problem.... I think we must move the "CDI-init stuff" into a extension, but the leave everything else as it is as MF can still be used without CDI. As the ServletContextInitializer runs before the CDI Extensions, the StartupFacesContext could be available, also in the extension?
2018-04-13 9:54 GMT+02:00 Mark Struberg <strub...@yahoo.de>: > Hi folks! > > I've figured that we blow up pretty nasty when using latest MyFaces on > Tomcat with any CDI container (OWB or Weld). > That's because you must not use BeanManager#getBeans before > AfterDeplyomentValidation gets fired. > > I think the whole handling should ONLY be done via a CDI Extension! > In which way it will automatically get picked up and will initialise Flows > perfectly fine. > > The only problem to solve is how to make the FacesContext available from > within the CDI Extension. > The ticket is tracked as MYFACES-4224. > Feedback welcome. > > > LieGrue, > strub