You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/08 09:04:00 UTC

[jira] [Commented] (KARAF-6498) StaticCM doesn't work with SCR

    [ https://issues.apache.org/jira/browse/KARAF-6498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16969956#comment-16969956 ] 

ASF GitHub Bot commented on KARAF-6498:
---------------------------------------

jbonofre commented on pull request #991: [KARAF-6498] Improve SCR support in staticcm
URL: https://github.com/apache/karaf/pull/991
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> StaticCM doesn't work with SCR
> ------------------------------
>
>                 Key: KARAF-6498
>                 URL: https://issues.apache.org/jira/browse/KARAF-6498
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.6
>            Reporter: J. Brébec
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: static
>             Fix For: 4.3.0, 4.2.8
>
>         Attachments: KARAF6498.patch
>
>
> I am trying to build Dockers images of Karaf for some custom features of my application, and for that, I use a Karaf Static Distribution.
> However, some container who worked with Karaf 4.0 doesn't work now with Karaf 4.2.6
> I have noted the following issues :
>  # "etc/org.apache.karaf.log.cfg" export the property
> {code:java}
> size = "500"{code}
> which is not a valid property (because of the double quote). The Felix ConfigAdmin implementation use interpolation and transform "500" to 500, but the staticcm doesn't do that : There is a NumberFormatException in BaseActivator.getInt()
>  # StaticCM export the package osg.osgi.service.cm with version "1.6.0", however it doesn't implement this version : SCR in Karaf 4.2.6 needs an implementation of "Configuration.getProcessedProperties()" which is not implemented by staticcm
>  # SCR register a ManagedService without a "service.pid" property. In this case, the StaticCM just Sytem.err an error "Invalid pid: null" without calling service.update(null) as required by the specification
> In other words, in Karaf 4.2.6, Felix SCR requires a version of ConfigurationAdmin which is not implemented by the staticcm bundle, and some DS services are not correctly registered with a Karaf Static Distribution.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)