Hi,

I tried on both Karaf 4.1.6 and Karaf 4.2.1, and it works fine for me:
the SCR feature is installed and my SCR bundle starts correctly when I
put the kar in the deploy folder or when I use kar:install.

So, you are using SMX 7.0.1 as Karaf version ?

Regards
JB

On 01/09/2018 19:10, Thiago Moreira (timba) wrote:
> 
>   I need scr as prerequisite to run my app. The thing is I'm running a
> docker that has a vanilla ServiceMix (7.0.1) installation and my goal is
> to be able to deploy a single file with everything that I need.
> 
>   I tried to install scr and then deploy the kar (via deploy folder) but
> not lucky
> 
>   Yes, the service org.osgi.service.component.ComponentFactory is
> installed and it is provided by my "Bot Implementation" bundle.
> 
>   I didn't understand your last question. Is there another way to
> achieve the installation of everything at once (like EARs)? 
> 
>   BTW, I'm an OSGi/Karaf/ServiceMix beginner. :D
>   
> Thiago Moreira
> +55 48 99911-6331
> 
> 
> On Sat, Sep 1, 2018 at 1:28 PM Jean-Baptiste Onofré <j...@nanthrax.net
> <mailto:j...@nanthrax.net>> wrote:
> 
>     Oh sorry, I missed the cause:  the service
>     org.osgi.service.component.ComponentFactory is not there ;)
> 
>     Why do you have as a prerequisite ?
> 
>     I guess that if you install the scr feature before the kar it works fine
>     right ?
> 
>     Can you check if you have the ComponentFactory service ?
> 
>     By the way, why did you define the requirement in your bundle ?
> 
>     Regards
>     JB
> 
>     On 01/09/2018 18:19, Thiago Moreira (timba) wrote:
>     >
>     >   Hey JB, yes it does. Check it here feature.xml
>     >
>     
> <https://github.com/tmoreira2020/poc-osgi-whiteboard/blob/master/br.com.thiagomoreira.kar/src/main/feature/feature.xml>
>     >
>     > Thiago Moreira
>     > +55 48 99911-6331
>     >
>     >
>     > On Sat, Sep 1, 2018 at 1:05 PM Jean-Baptiste Onofré
>     <j...@nanthrax.net <mailto:j...@nanthrax.net>
>     > <mailto:j...@nanthrax.net <mailto:j...@nanthrax.net>>> wrote:
>     >
>     >     Hi,
>     >
>     >     does the features XML used to create the kar contain the scr
>     feature ?
>     >
>     >     Basically, as you are using DS, you have to install the scr
>     feature.
>     >
>     >     Regards
>     >     JB
>     >
>     >     On 01/09/2018 17:52, Thiago Moreira (timba) wrote:
>     >     >
>     >     >   Hey all! Does anyone can help me with this question? 
>     >     >
>     >   
>      
> https://stackoverflow.com/questions/52118716/unable-to-deploy-a-karaf-kar-file-containing-a-componentfactory-osgi-declarative
>     >     >
>     >     >   Thanks
>     >     >
>     >     > p.s. I have tried to send the question directly to here
>     before but
>     >     seems
>     >     > that I wasn't properly added to the list. Given another try...
>     >     >
>     >     > Thiago Moreira
>     >     > +55 48 99911-6331
>     >
>     >     --
>     >     Jean-Baptiste Onofré
>     >     jbono...@apache.org <mailto:jbono...@apache.org>
>     <mailto:jbono...@apache.org <mailto:jbono...@apache.org>>
>     >     http://blog.nanthrax.net
>     >     Talend - http://www.talend.com
>     >
> 
>     -- 
>     Jean-Baptiste Onofré
>     jbono...@apache.org <mailto:jbono...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
> 

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to