You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Christian Kaltepoth (JIRA)" <ji...@apache.org> on 2014/07/31 15:27:39 UTC
[jira] [Resolved] (DELTASPIKE-676) ServletContext is available for
injection before EventBridgeContextListener
[ https://issues.apache.org/jira/browse/DELTASPIKE-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Kaltepoth resolved DELTASPIKE-676.
--------------------------------------------
Resolution: Fixed
Fix Version/s: 1.0.2
Thanks for reporting this. I was able to reproduce this issue and fixed it:
https://git-wip-us.apache.org/repos/asf?p=deltaspike.git;a=commitdiff;h=da28876d32a9e3c01d31df6be9fe5dec2c9eee5d
> ServletContext is available for injection before EventBridgeContextListener
> ---------------------------------------------------------------------------
>
> Key: DELTASPIKE-676
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-676
> Project: DeltaSpike
> Issue Type: Improvement
> Components: Servlet-Module
> Affects Versions: 1.0.1
> Environment: Tomcat + WELD
> Reporter: jason zhang
> Assignee: Christian Kaltepoth
> Fix For: 1.0.2
>
>
> Servlet Context is not available for injection in @observe @Initialized ServletContext servletContext event.
> I suggest put EventBridgeContextListener after ServletContextHolderListener in web-fragment.xml.
> Deeply in my code, I need servletContext to do the work. The servletContext is injected from CDI using @initialized qualifier.
--
This message was sent by Atlassian JIRA
(v6.2#6252)