felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Offermans (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FELIX-3355) Autoconf can't find Metatype service
Date Fri, 15 Nov 2013 13:57:20 GMT

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

Marcel Offermans reassigned FELIX-3355:
---------------------------------------

    Assignee: Marcel Offermans

> Autoconf can't find Metatype service
> ------------------------------------
>
>                 Key: FELIX-3355
>                 URL: https://issues.apache.org/jira/browse/FELIX-3355
>             Project: Felix
>          Issue Type: Bug
>          Components: Deployment Admin
>    Affects Versions: autoconf-rp-0.1.0
>            Reporter: Bram de Kruijff
>            Assignee: Marcel Offermans
>             Fix For: autoconf-rp-0.1.4
>
>
> Although Autoconf appears to consult MetaTypeService to resolve OCDs in code it never
will. This is caused by the fact that the bundle does not import org.osgi.service.metatype,
but embeds it. Any actual MetaTypeService will not be assignable.
> The reason it doesn't fail is that the dependencymanager dependency is optional. As a
result the AutoconfResourceProcessor operates against an injected NullObject. You never get
any warning, but it simply never resolves OCDs. 
> Besides fixing the import IMHO it would not be unreasnable to require MetaTypeService
> {code}
> Index: autoconf/pom.xml
> ===================================================================
> --- autoconf/pom.xml    (revision 1245822)
> +++ autoconf/pom.xml    (working copy)
> @@ -86,7 +86,7 @@
>                          <Bundle-Name>Apache Felix AutoConf Resource Processor</Bundle-Name>
>                          <Bundle-Description>A customizer bundle that publishes
a Resource Processor service that processes configuration resources shipped in a
>  Deployment Package.</Bundle-Description>
>                          <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
> -                        <Private-Package>org.apache.felix.deployment.rp.autoconf,
org.apache.felix.metatype, org.apache.felix.metatype.internal.l10n, org.apach
> e.felix.metatype.internal, org.kxml2.io;-split-package:=merge-first, org.xmlpull.v1;-split-package:=merge-first,
org.osgi.service.metatype;-split-package:=merge
> -first</Private-Package>
> +                        <Private-Package>org.apache.felix.deployment.rp.autoconf,
org.apache.felix.metatype, org.apache.felix.metatype.internal.l10n, org.apach
> e.felix.metatype.internal, org.kxml2.io;-split-package:=merge-first, org.xmlpull.v1;-split-package:=merge-first</Private-Package>
>                          <Export-Package>org.osgi.service.deploymentadmin.spi;version="1.0"</Export-Package>
>                          <DeploymentPackage-Customizer>true</DeploymentPackage-Customizer>
>                          <Deployment-ProvidesResourceProcessor>org.osgi.deployment.rp.autoconf</Deployment-ProvidesResourceProcessor>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message