You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Bryn Cooke (JIRA)" <ji...@apache.org> on 2014/03/04 13:38:21 UTC
[jira] [Comment Edited] (DELTASPIKE-532)
DeltaSpikeFacesContextFactory construction issue in non EE
[ https://issues.apache.org/jira/browse/DELTASPIKE-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13919334#comment-13919334 ]
Bryn Cooke edited comment on DELTASPIKE-532 at 3/4/14 12:36 PM:
----------------------------------------------------------------
DeltaSpikeViewHandler also has this issue. I think that because the order of context initializers is non-determinitsic sometime it is working for me and sometime it doesn't.
I have gone through the classes in deltaaspike faces-config.xml and can't see any other obvious references to the bean manager in their constructors.
Shall I open a separate issue for DeltaSpikeViewHandler?
was (Author: bryncooke):
DeltaSpikeViewHandler also has this issue. I think that because the order of context initializers is non-determinitsic sometime it is working for me and sometime it doesn't.
I have gone through the classes in deltaaspike faces-config.xml and can't see any other obvious references to the bean manager.
Shall I open a separate issue for DeltaSpikeViewHandler?
> DeltaSpikeFacesContextFactory construction issue in non EE
> -----------------------------------------------------------
>
> Key: DELTASPIKE-532
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-532
> Project: DeltaSpike
> Issue Type: Bug
> Components: JSF-Module
> Affects Versions: 0.5
> Environment: Tomcat
> Reporter: Bryn Cooke
> Assignee: Thomas Andraschko
> Fix For: 0.6
>
>
> In non-EE environments you may be using Weld Servlet to initialize CDI.
> However because of JSF zeroconfig you cannot guarantee that weld servlet will be started before JSF.
> During JSF startup DeltaSpikeFacesContextFactory is created and clientWindow is populated, but it throws an exception because the following will only work once the CDI container is started:
> this.clientWindow = BeanProvider.getContextualReference(ClientWindow.class, true);
> Recommend not caching the clientWindow.
> I can confirm that JSF seems to load OK after this is fixed.
--
This message was sent by Atlassian JIRA
(v6.2#6252)