Hi Dan,

You should be able to see the service in the output of ls command.

As the interfaces are auto-export, the interface should be "visible".

I'm gonna check and raise a Jira if it's not the case.

Regards
JB

On 05/26/2011 12:37 AM, Dan Tran wrote:
Hi the com.apache.karaf.deployer.kar's blueprint.xml file has

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
        xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0";
        default-activation="lazy">

        <ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]" 
/>
        
        <bean id="karArtifactInstaller"
class="org.apache.karaf.deployer.kar.KarArtifactInstaller"
                init-method="init" destroy-method="destroy" activation="lazy">
                        <property name="basePath" value="$[karaf.base]"/>
                        <property name="localRepoPath" 
value="$[karaf.base]/local-repo"/>
        <property name="featuresService">
        <reference interface="org.apache.karaf.features.FeaturesService"/>
        </property>
        </bean>
                        
        <service id="karArtifactInstallerService"
                ref="karArtifactInstaller"
                auto-export="interfaces"/>

</blueprint>

However its manifest file does not export the service so we can not reuse it

Manifest-Version: 1.0
Export-Package: org.apache.karaf.deployer.kar;uses:="org.w3c.dom,org.x
  ml.sax,org.apache.felix.fileinstall,javax.xml.parsers,org.apache.kara
  f.features,org.slf4j";version="2.2.1"
Built-By: jgoodyea
Tool: Bnd-1.15.0
Bundle-Name: Apache Karaf :: Deployer :: Karaf Archive (.kar)
Created-By: Apache Maven Bundle Plugin
Import-Service: org.apache.karaf.features.FeaturesService
Bundle-Vendor: The Apache Software Foundation
Build-Jdk: 1.6.0_21
Bundle-Version: 2.2.1
Bnd-LastModified: 1305164929094
Bundle-ManifestVersion: 2
Bundle-Description: This deployer can deploy .kar archives on the fly
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-SymbolicName: org.apache.karaf.deployer.kar;blueprint.graceperi
  od:=false
Bundle-DocURL: http://www.apache.org/
Import-Package: javax.xml.parsers,org.apache.felix.fileinstall;version
  ="[3.1,4)",org.apache.karaf.features;version="[2.2,3)",org.osgi.servi
  ce.blueprint;version="[1.0.0,2.0.0)",org.slf4j;version="[1.6,2)",org.
  w3c.dom,org.xml.sax




is it intended?  Can i make a request to expose it?

Reply via email to