You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "Philipp Ottlinger (JIRA)" <ji...@apache.org> on 2019/02/11 19:17:00 UTC

[jira] [Updated] (TAMAYA-383) Problem with ServiceContext in ServiceContextManager

     [ https://issues.apache.org/jira/browse/TAMAYA-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philipp Ottlinger updated TAMAYA-383:
-------------------------------------
    Fix Version/s: 0.4-incubating

> Problem with ServiceContext in ServiceContextManager
> ----------------------------------------------------
>
>                 Key: TAMAYA-383
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-383
>             Project: Tamaya
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4-incubating
>            Reporter: Christian Niehues
>            Priority: Major
>             Fix For: 0.4-incubating
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> After a longer period I updated my tamaya sources from master and deployed them into my existing karaf project. After that the core tamaya-core bundle fails to start the OSGIActivator because of ConfigException "No ServiceContext found".
> The exception comes from ServiceContextManager::loadDefaultServiceProvider which always try to get a new(best) Service Provider instead of using the one got from ServiceContextManager::set method like in older implementations. The problem is that ServiceLoader.load(ServiceContext.class, classLoader) doesn't find anything and I ask myself if it shouldn't be a OSGIServiceLoader do find the service declaration.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)