You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Erwin Hogeweg <er...@me.com> on 2015/06/22 05:07:39 UTC
3.0.4-SNAPSHOT - Embedded Features don't start.
Hi ,
It looks like embedded features aren’t started anymore in 3.0.4-SS
This is snippet of my feature.xml
<feature name=“my.feature" version="1.0.0-SNAPSHOT" description=“a description">
<feature version="[2.7.8, 3.0)">cxf</feature>
<feature version="[1.6.0, 1.7)">cxf-dosgi-discovery-distributed</feature>
<feature>webconsole</feature>
<feature version="[2.0,2.1)">jpa</feature>
<feature>eventadmin</feature>
<feature>scr</feature>
…
The console output:
...
Installing feature webconsole 3.0.4-SNAPSHOT
Found installed bundle: org.apache.felix.metatype [448]
Found installed bundle: org.apache.karaf.webconsole.branding [449]
Found installed bundle: org.apache.karaf.webconsole.console [450]
Installing feature jpa 2.0.0
...
The bundle status after the feature installation:
webconsole | 3.0.4-SNAPSHOT | | standard-3.0.4-SNAPSHOT | Base support of the Karaf WebConsole
jpa | 2.0.0 | | enterprise-3.0.4-SNAPSHOT | OSGi Persistence Container
eventadmin | 3.0.4-SNAPSHOT | | standard-3.0.4-SNAPSHOT | OSGi Event Admin service specification for event-b
scr | 3.0.4-SNAPSHOT | | standard-3.0.4-SNAPSHOT | Declarative Service support
Is this changed intentionally in 3.0.4?
Regards,
Erwin
Re: 3.0.4-SNAPSHOT - Embedded Features don't start.
Posted by Erwin Hogeweg <er...@me.com>.
This may be related. I get an error on installing CXF (which doesn’t seem to make sense because the spring feature is installed and the org.springframework.beans package is there.)
karaf@root()> feature:list -i
Name | Version | Installed | Repository | Description
-----------------------------------------------------------------------------------------------------------------------
standard | 3.0.4-SNAPSHOT | x | standard-3.0.4-SNAPSHOT | Karaf standard feature
config | 3.0.4-SNAPSHOT | x | standard-3.0.4-SNAPSHOT | Provide OSGi ConfigAdmin support
region | 3.0.4-SNAPSHOT | x | standard-3.0.4-SNAPSHOT | Provide Region Support
package | 3.0.4-SNAPSHOT | x | standard-3.0.4-SNAPSHOT | Package commands and mbeans
kar | 3.0.4-SNAPSHOT | x | standard-3.0.4-SNAPSHOT | Provide KAR (KARaf archive) support
ssh | 3.0.4-SNAPSHOT | x | standard-3.0.4-SNAPSHOT | Provide a SSHd server on Karaf
management | 3.0.4-SNAPSHOT | x | standard-3.0.4-SNAPSHOT | Provide a JMX MBeanServer and a set of MBeans in K
spring | 4.1.6.RELEASE_1 | x | spring-3.0.4-SNAPSHOT | Spring 4.1.x support
karaf@root()> feature:repo-add mvn:com.my.test/my-stress-test/3.0.4-SNAPSHOT/xml/features
Adding feature url mvn:com.my.test/my-stress-test/3.0.4-SNAPSHOT/xml/features
karaf@root()> feature:install my-stress-test
Error executing command: Can't install feature my-stress-test/0.0.0:
Could not start bundle mvn:org.apache.cxf/cxf-bundle-compatible/2.7.8 in feature(s) cxf-2.7.8: Unresolved constraint in bundle org.apache.cxf.bundle [577]: Unable to resolve 577.0: missing requirement [577.0] osgi.wiring.bundle; (osgi.wiring.bundle=org.springframework.beans)
karaf@root()> package:exports | grep org.springframework.beans
org.springframework.beans.annotation | 4.1.6.RELEASE | 204 | org.apache.servicemix.bundles.spring-beans
...
org.springframework.beans | 4.1.6.RELEASE | 204 | org.apache.servicemix.bundles.spring-beans
karaf@root()>
my-stress-test is defined as:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features name=“my-stress-test-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.2.1 http://karaf.apache.org/xmlns/features/v1.2.1">
<repository>mvn:org.apache.cxf.karaf/apache-cxf/2.7.8/xml/features</repository>
<repository>mvn:org.apache.cxf.dosgi/cxf-dosgi/1.6.0/xml/features</repository>
<feature name=“my-stress-test" version="1.0.0-SNAPSHOT" description="Stress Test Karaf Feature">
<feature version="[2.7.8, 3.0)">cxf</feature>
<feature version="[1.6.0, 1.7)">cxf-dosgi-discovery-distributed</feature>
<feature>webconsole</feature>
<feature version="[2.0,2.1)">jpa</feature>
<feature>eventadmin</feature>
<feature>scr</feature>
...
</feature>
Regards,
Erwin
> On Jun 22, 2015, at 07:03, Erwin Hogeweg <er...@me.com> wrote:
>
> JB,
>
> Sorry, I meant depended features, as in the snippet below.
>
>> This is snippet of my feature.xml
>> <feature name=“my.feature" version="1.0.0-SNAPSHOT" description=“a
>> description">
>> <feature version="[2.7.8, 3.0)">cxf</feature>
>> <feature version="[1.6.0,
>> 1.7)">cxf-dosgi-discovery-distributed</feature>
>> <feature>webconsole</feature>
>> <feature version="[2.0,2.1)">jpa</feature>
>> <feature>eventadmin</feature>
>> <feature>scr</feature>
>
>
>
> Kind Regards,
>
> Erwin
>
> On Jun 21, 2015, at 23:52, Jean-Baptiste Onofré <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>
>> Hi,
>>
>> what do you mean by embedded features ? featuresBoot ?
>>
>> Regards
>> JB
>>
>> On 06/22/2015 05:07 AM, Erwin Hogeweg wrote:
>>> Hi ,
>>>
>>> It looks like embedded features aren’t started anymore in 3.0.4-SS
>>>
>>> This is snippet of my feature.xml
>>> <feature name=“my.feature" version="1.0.0-SNAPSHOT" description=“a
>>> description">
>>> <feature version="[2.7.8, 3.0)">cxf</feature>
>>> <feature version="[1.6.0,
>>> 1.7)">cxf-dosgi-discovery-distributed</feature>
>>> <feature>webconsole</feature>
>>> <feature version="[2.0,2.1)">jpa</feature>
>>> <feature>eventadmin</feature>
>>> <feature>scr</feature>
>>> …
>>>
>>>
>>> The console output:
>>> ...
>>> Installing feature webconsole 3.0.4-SNAPSHOT
>>> Found installed bundle: org.apache.felix.metatype [448]
>>> Found installed bundle: org.apache.karaf.webconsole.branding [449]
>>> Found installed bundle: org.apache.karaf.webconsole.console [450]
>>> Installing feature jpa 2.0.0
>>> ...
>>>
>>> The bundle status after the feature installation:
>>>
>>> webconsole | 3.0.4-SNAPSHOT | | standard-3.0.4-SNAPSHOT | Base support
>>> of the Karaf WebConsole
>>> jpa | 2.0.0 | |
>>> enterprise-3.0.4-SNAPSHOT | OSGi Persistence Container
>>> eventadmin | 3.0.4-SNAPSHOT | |
>>> standard-3.0.4-SNAPSHOT | OSGi Event Admin service specification
>>> for event-b
>>> scr | 3.0.4-SNAPSHOT | |
>>> standard-3.0.4-SNAPSHOT | Declarative Service support
>>>
>>> Is this changed intentionally in 3.0.4?
>>>
>>>
>>> Regards,
>>>
>>> Erwin
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> http://blog.nanthrax.net <http://blog.nanthrax.net/>
>> Talend - http://www.talend.com <http://www.talend.com/>
Re: 3.0.4-SNAPSHOT - Embedded Features don't start.
Posted by Erwin Hogeweg <er...@me.com>.
JB,
Sorry, I meant depended features, as in the snippet below.
> This is snippet of my feature.xml
> <feature name=“my.feature" version="1.0.0-SNAPSHOT" description=“a
> description">
> <feature version="[2.7.8, 3.0)">cxf</feature>
> <feature version="[1.6.0,
> 1.7)">cxf-dosgi-discovery-distributed</feature>
> <feature>webconsole</feature>
> <feature version="[2.0,2.1)">jpa</feature>
> <feature>eventadmin</feature>
> <feature>scr</feature>
Kind Regards,
Erwin
> On Jun 21, 2015, at 23:52, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
>
> Hi,
>
> what do you mean by embedded features ? featuresBoot ?
>
> Regards
> JB
>
>> On 06/22/2015 05:07 AM, Erwin Hogeweg wrote:
>> Hi ,
>>
>> It looks like embedded features aren’t started anymore in 3.0.4-SS
>>
>> This is snippet of my feature.xml
>> <feature name=“my.feature" version="1.0.0-SNAPSHOT" description=“a
>> description">
>> <feature version="[2.7.8, 3.0)">cxf</feature>
>> <feature version="[1.6.0,
>> 1.7)">cxf-dosgi-discovery-distributed</feature>
>> <feature>webconsole</feature>
>> <feature version="[2.0,2.1)">jpa</feature>
>> <feature>eventadmin</feature>
>> <feature>scr</feature>
>> …
>>
>>
>> The console output:
>> ...
>> Installing feature webconsole 3.0.4-SNAPSHOT
>> Found installed bundle: org.apache.felix.metatype [448]
>> Found installed bundle: org.apache.karaf.webconsole.branding [449]
>> Found installed bundle: org.apache.karaf.webconsole.console [450]
>> Installing feature jpa 2.0.0
>> ...
>>
>> The bundle status after the feature installation:
>>
>> webconsole | 3.0.4-SNAPSHOT | | standard-3.0.4-SNAPSHOT | Base support
>> of the Karaf WebConsole
>> jpa | 2.0.0 | |
>> enterprise-3.0.4-SNAPSHOT | OSGi Persistence Container
>> eventadmin | 3.0.4-SNAPSHOT | |
>> standard-3.0.4-SNAPSHOT | OSGi Event Admin service specification
>> for event-b
>> scr | 3.0.4-SNAPSHOT | |
>> standard-3.0.4-SNAPSHOT | Declarative Service support
>>
>> Is this changed intentionally in 3.0.4?
>>
>>
>> Regards,
>>
>> Erwin
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Re: 3.0.4-SNAPSHOT - Embedded Features don't start.
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
what do you mean by embedded features ? featuresBoot ?
Regards
JB
On 06/22/2015 05:07 AM, Erwin Hogeweg wrote:
> Hi ,
>
> It looks like embedded features aren’t started anymore in 3.0.4-SS
>
> This is snippet of my feature.xml
> <feature name=“my.feature" version="1.0.0-SNAPSHOT" description=“a
> description">
> <feature version="[2.7.8, 3.0)">cxf</feature>
> <feature version="[1.6.0,
> 1.7)">cxf-dosgi-discovery-distributed</feature>
> <feature>webconsole</feature>
> <feature version="[2.0,2.1)">jpa</feature>
> <feature>eventadmin</feature>
> <feature>scr</feature>
> …
>
>
> The console output:
> ...
> Installing feature webconsole 3.0.4-SNAPSHOT
> Found installed bundle: org.apache.felix.metatype [448]
> Found installed bundle: org.apache.karaf.webconsole.branding [449]
> Found installed bundle: org.apache.karaf.webconsole.console [450]
> Installing feature jpa 2.0.0
> ...
>
> The bundle status after the feature installation:
>
> webconsole | 3.0.4-SNAPSHOT | | standard-3.0.4-SNAPSHOT | Base support
> of the Karaf WebConsole
> jpa | 2.0.0 | |
> enterprise-3.0.4-SNAPSHOT | OSGi Persistence Container
> eventadmin | 3.0.4-SNAPSHOT | |
> standard-3.0.4-SNAPSHOT | OSGi Event Admin service specification
> for event-b
> scr | 3.0.4-SNAPSHOT | |
> standard-3.0.4-SNAPSHOT | Declarative Service support
>
> Is this changed intentionally in 3.0.4?
>
>
> Regards,
>
> Erwin
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com