I fixed it by blacklisting repos in etc/org.apache.karaf.features.xml
<repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0/xml/features</repository>
<repository>mvn:org.ops4j.pax.web/pax-web-features/7.2.16/xml/features</repository>
<repository>mvn:org.apache.karaf.features/spring-legacy/4.2.9/xml/features</repository>
<repository>mvn:org.apache.karaf.features/standard/4.2.9/xml/features</repository>
<repository>mvn:org.apache.karaf.features/standard/[4,5)/xml/features</repository>
This removed the issues.
> On Oct 29, 2020, at 5:47 AM, John Taylor <[email protected]> wrote:
>
> Hi,
> I also see this with camel 3.4.4.
>
> Both camel 3.6.0 and 3.4.4 features.xml [1] have spring-legacy/4.2.9
> <features name="camel-3.4.4">
> <repository>
> mvn:org.apache.karaf.features/spring-legacy/4.2.9/xml/features
> </repository>
>
> So I guess that would be why?
> -John
>
> [1]
> https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.4.4/apache-camel-3.4.4-features.xml
>
> <https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.4.4/apache-camel-3.4.4-features.xml>
> On Thu, Oct 29, 2020 at 5:47 AM Jean-Baptiste Onofre <[email protected]
> <mailto:[email protected]>> wrote:
> Hi,
>
> Let me try. AFAIR, Camel uses a range, so it should be fine.
>
> Regards
> JB
>
>> Le 28 oct. 2020 à 12:04, Oleg Cohen <[email protected]
>> <mailto:[email protected]>> a écrit :
>>
>> Greetings,
>>
>> I am migrating to Karaf v4.2.10. Starting from a clean container.
>>
>> If I install feature war all works fine.
>>
>> After I add two camel repos:
>>
>> feature:repo-add
>> mvn:org.apache.camel.karaf/apache-camel/RELEASE/xml/features
>> feature:repo-add
>> mvn:org.apache-extras.camel-extra.karaf/camel-extra/RELEASE/xml/features
>>
>> I see a number of errors when installing war (or any other feature). I
>> noticed that there are commands to install
>> org.apache.karaf.scr.management/4.2.9 along with 4.2.10
>>
>> 2020-10-28T06:59:33,762 | INFO | features-3-thread-1 | CommandExtension
>> | 37 - org.apache.karaf.shell.core - 4.2.10 | Registering
>> commands for bundle org.apache.karaf.scr.state/4.2.10
>> 2020-10-28T06:59:33,762 | INFO | features-3-thread-1 | FeaturesServiceImpl
>> | 11 - org.apache.karaf.features.core - 4.2.10 |
>> org.apache.karaf.scr.management/4.2.9
>> 2020-10-28T06:59:33,772 | INFO | features-3-thread-1 |
>> ServiceComponentRuntimeMBeanImpl | 59 - org.apache.karaf.scr.management -
>> 4.2.9 | Activating the Apache Karaf ServiceComponentRuntime MBean
>> 2020-10-28T06:59:33,773 | INFO | features-3-thread-1 | FeaturesServiceImpl
>> | 11 - org.apache.karaf.features.core - 4.2.10 |
>> org.apache.karaf.scr.management/4.2.10
>>
>> The errors are JMX based:
>>
>> 2020-10-28T06:59:33,779 | INFO | features-3-thread-1 |
>> ServiceComponentRuntimeMBeanImpl | 60 - org.apache.karaf.scr.management -
>> 4.2.10 | Activating the Apache Karaf ServiceComponentRuntime MBean
>> 2020-10-28T06:59:33,780 | ERROR | features-3-thread-1 |
>> ServiceComponentRuntimeMBeanImpl | 60 - org.apache.karaf.scr.management -
>> 4.2.10 | Exception registering the SCR Management MBean:
>> org.apache.karaf:type=scr,name=root
>> javax.management.InstanceAlreadyExistsException:
>> org.apache.karaf:type=scr,name=root
>>
>> Would appreciate help on resolving this!
>>
>> Best,
>> Oleg
>