[
https://issues.apache.org/jira/browse/FELIX-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
J.W. Janssen resolved FELIX-4483.
---------------------------------
Resolution: Fixed
Thanks for the patch! Applied in rev #1587624.
> osgi-bundlecontext is not available in init methods
> ---------------------------------------------------
>
> Key: FELIX-4483
> URL: https://issues.apache.org/jira/browse/FELIX-4483
> Project: Felix
> Issue Type: Bug
> Components: HTTP Service
> Reporter: Bob Paulin
> Priority: Minor
> Attachments: FELIX-4483.patch
>
>
> This current ordering in the JettyService#doExecute method does not allow the
> osgi-bundlecontext to be available in Servlet and Filter init classes:
> 1) Get Bundle
> 2) Start WebAppBundleContext
> 3) Create Service Properties
> 4) Register Service
> 5) Set osgi-bundlecontext Servlet Context
> Propose changing it to the following order to allow for the context to be
> used:
> 1) Get Bundle
> *2) Set osgi-bundlecontext Servlet Context*
> 3) Start WebAppBundleContext
> 4) Create Service Properties
> 5) Register Service it in the
--
This message was sent by Atlassian JIRA
(v6.2#6252)