Thanks Luca for the example. I checked it and in logs I see: 2019-04-01T16:36:29,580 | INFO | features-3-thread-1 | FeaturesServiceImpl | 9 - org.apache.karaf.features.core - 4.2.4 | org.ops4j.pax.logging.pax-logging-api/1.10.1 2019-04-01T16:36:29,581 | INFO | features-3-thread-1 | Activator | 4 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling SLF4J API support. 2019-04-01T16:36:29,581 | INFO | features-3-thread-1 | Activator | 4 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Jakarta Commons Logging API support. 2019-04-01T16:36:29,581 | INFO | features-3-thread-1 | Activator | 4 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Log4J API support. 2019-04-01T16:36:29,581 | INFO | features-3-thread-1 | Activator | 4 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Avalon Logger API support. 2019-04-01T16:36:29,581 | INFO | features-3-thread-1 | Activator | 4 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling JULI Logger API support. 2019-04-01T16:36:29,581 | INFO | features-3-thread-1 | Activator | 4 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Log4J v2 API support.
Stopping pax-logging-api is always a sign that something installed later causes pax-logging-api to refresh. So it looked like that pax-url-aether was refreshed as well. Stopped pax-logging-api stops the logging... And bingo: In debugger I see: toRefresh = {java.util.TreeMap@7424} size = 8 {org.apache.felix.framework.BundleImpl@7435} "org.apache.felix.configadmin [7]" -> "Wired to org.apache.felix.coordinator/1.0.2 which is being refreshed" {org.apache.felix.framework.BundleImpl@7445} "org.apache.felix.coordinator [6]" -> "Wired to org.ops4j.pax.logging.pax-logging-api/1.10.1 which is being refreshed" {org.apache.felix.framework.BundleImpl@7442} "org.apache.felix.fileinstall [8]" -> "Wired to org.apache.felix.configadmin/1.9.14 which is being refreshed" {org.apache.felix.framework.BundleImpl@7434} "org.apache.karaf.features.core [9]" -> "Wired to org.apache.felix.configadmin/1.9.14 which is being refreshed" {org.apache.felix.framework.BundleImpl@7443} "org.ops4j.pax.logging.pax-logging-api [4]" -> "Should be wired to: org.apache.karaf.services.eventadmin/4.2.4 (through [org.ops4j.pax.logging.pax-logging-api [4](R 4.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.event)(version>=1.0.0)(!(version>=2.0.0))))" key: org.apache.felix.framework.BundleImpl = {org.apache.felix.framework.BundleImpl@7443} "org.ops4j.pax.logging.pax-logging-api [4]" value: java.lang.String = *"Should be wired to: org.apache.karaf.services.eventadmin/4.2.4 (through [org.ops4j.pax.logging.pax-logging-api [4](R 4.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.event)(version>=1.0.0)(!(version>=2.0.0))))"* {org.apache.felix.framework.BundleImpl@7446} "org.ops4j.pax.logging.pax-logging-log4j2 [5]" -> "Wired to org.ops4j.pax.logging.pax-logging-api/1.10.1 which is being refreshed" {org.apache.felix.framework.BundleImpl@7444} *"org.ops4j.pax.url.mvn [2]" -> "Wired to org.ops4j.pax.logging.pax-logging-api/1.10.1 which is being refreshed"* {org.apache.felix.framework.BundleImpl@7447} "org.ops4j.pax.url.wrap [11]" -> "Wired to org.apache.felix.configadmin/1.9.14 which is being refreshed" So, to prevent refreshing pax-url-aether, you have to ensure that "eventadmin" feature is installed at "startup" stage. To do this: - change scope for org.apache.karaf.features:standard:4.2.4:xml:features dependency to compile (== "startup" stage. previous scope=runtime means "boot" stage) - add: <startupFeatures> <feature>eventadmin</feature> </startupFeatures> to karaf-maven-plugin configuration I checked that it works. regards Grzegorz Grzybek pon., 1 kwi 2019 o 10:24 leonardchicco <luca.leonardi1...@gmail.com> napisał(a): > Thank you for your prompt reply, I tried to add the "pax-url-aether" in the > section boot feature of pom file, but i have the same error. > > Follow my POM FILE > > > <?xml version="1.0" encoding="UTF-8"?> > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>com.sample</groupId> > <artifactId>Karaf custom</artifactId> > <version>2.0.0-SNAPSHOT</version> > <name>sample.com :: Parent POM for Offline Karaf</name> > <description>Maven POM for Offline Karaf server</description> > <packaging>karaf-assembly</packaging> > <scm> > <connection> > scm:git:https://github.com/juttayaya/karaf.git > </connection> > <developerConnection> > scm:git:https://github.com/juttayaya/karaf.git > </developerConnection> > </scm> > <prerequisites> > <maven>3.0.3</maven> > </prerequisites> > > <properties> > <karaf.version>4.2.4</karaf.version> > <camel.version>2.23.1</camel.version> > <activemq.version>5.15.9</activemq.version> > <hawtio.version>2.5.0</hawtio.version> > > > > > <karaf.plugin.version>${karaf.version}</karaf.plugin.version> > > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > > <project.build.reportEncoding>UTF-8</project.build.reportEncoding> > </properties> > > > <dependencyManagement> > <dependencies> > <dependency> > <groupId>org.apache.karaf</groupId> > <artifactId>karaf</artifactId> > <version>${karaf.version}</version> > <type>pom</type> > <scope>import</scope> > </dependency> > </dependencies> > </dependencyManagement> > > <dependencies> > <dependency> > > <groupId>org.apache.karaf.features</groupId> > <artifactId>framework</artifactId> > <type>kar</type> > <version>${karaf.version}</version> > > <scope>compile</scope> > </dependency> > > <dependency> > > <groupId>org.apache.karaf.features</groupId> > <artifactId>standard</artifactId> > <classifier>features</classifier> > <type>xml</type> > <version>${karaf.version}</version> > > <scope>runtime</scope> > </dependency> > > <dependency> > <groupId>org.apache.karaf.features</groupId> > <artifactId>enterprise</artifactId> > <classifier>features</classifier> > <type>xml</type> > <version>${karaf.version}</version> > > <scope>runtime</scope> > </dependency> > > <dependency> > <groupId>org.apache.camel.karaf</groupId> > <artifactId>apache-camel</artifactId> > <version>${camel.version}</version> > <classifier>features</classifier> > <type>xml</type> > <scope>runtime</scope> > </dependency> > > <dependency> > <groupId>org.apache.karaf.features</groupId> > <artifactId>spring</artifactId> > <version>${karaf.version}</version> > <classifier>features</classifier> > <type>xml</type> > <scope>runtime</scope> > </dependency> > > <dependency> > <groupId>org.apache.activemq</groupId> > <artifactId>activemq-karaf</artifactId> > <version>${activemq.version}</version> > <classifier>features</classifier> > <type>xml</type> > > <scope>runtime</scope> > </dependency> > > <dependency> > <groupId>io.hawt</groupId> > <artifactId>hawtio-karaf</artifactId> > <version>${hawtio.version}</version> > <classifier>features</classifier> > <type>xml</type> > > <scope>runtime</scope> > </dependency> > </dependencies> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-install-plugin</artifactId> > <version>2.5.2</version> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-deploy-plugin</artifactId> > <version>2.8.2</version> > </plugin> > <plugin> > <groupId>org.apache.karaf.tooling</groupId> > <artifactId>karaf-maven-plugin</artifactId> > > <version>${karaf.plugin.version}</version> > <extensions>true</extensions> > <configuration> > > <ignoreDependencyFlag>false</ignoreDependencyFlag> > > <bootFeatures> > > > <feature>aries-proxy</feature> > > <feature>aries-blueprint</feature> > <feature>feature</feature> > <feature>shell</feature> > > <feature>shell-compat</feature> > <feature>deployer</feature> > <feature>bundle</feature> > <feature>config</feature> > > <feature>diagnostic</feature> > <feature>instance</feature> > <feature>jaas</feature> > <feature>log</feature> > <feature>package</feature> > <feature>service</feature> > <feature>system</feature> > <feature>kar</feature> > <feature>ssh</feature> > > <feature>management</feature> > <feature>wrap</feature> > > <feature>camel-core</feature> > <feature>camel</feature> > > <feature>camel-blueprint</feature> > > <feature>camel-netty4-http</feature> > > <feature>camel-ftp</feature> > > <feature>camel-mail</feature> > > <feature>camel-velocity</feature> > > <feature>camel-http4</feature> > > <feature>camel-jms</feature> > > <feature>camel-quartz2</feature> > > <feature>camel-cxf</feature> > > <feature>camel-jaxb</feature> > > <feature>camel-saxon</feature> > > <feature>camel-jackson</feature> > > <feature>camel-zipfile</feature> > <feature>hawtio</feature> > > <feature>activemq-broker</feature> > </bootFeatures> > > <installedFeatures> > <feature>obr</feature> > <feature>war</feature> > > <feature>webconsole</feature> > <feature>jndi</feature> > <feature>jpa</feature> > <feature>openjpa</feature> > <feature>jdbc</feature> > <feature>jms</feature> > > <feature>transaction</feature> > <feature>spring</feature> > > <feature>camel-xmljson</feature> > </installedFeatures> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-dependency-plugin</artifactId> > <executions> > <execution> > <id>copy</id> > > <phase>prepare-package</phase> > <goals> > <goal>copy</goal> > </goals> > <configuration> > <artifactItems> > > > <artifactItem> > > <groupId>org.apache.karaf.diagnostic</groupId> > > <artifactId>org.apache.karaf.diagnostic.boot</artifactId> > > <version>${karaf.version}</version> > > > <outputDirectory>target/assembly/system/org/apache/karaf/diagnostic/org.apache.karaf.diagnostic.boot/${karaf.version}</outputDirectory> > > </artifactItem> > > <artifactItem> > > <groupId>org.apache.karaf.jaas</groupId> > > <artifactId>org.apache.karaf.jaas.boot</artifactId> > > <version>${karaf.version}</version> > > > <outputDirectory>target/assembly/system/org/apache/karaf/jaas/org.apache.karaf.jaas.boot/${karaf.version}</outputDirectory> > > </artifactItem> > </artifactItems> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > <repositories> > > <repository> > <id>servicemix</id> > <name>ServiceMix Repo for Karaf</name> > <url> > http://svn.apache.org/repos/asf/servicemix/m2-repo</url> > </repository> > > <repository> > <id>maven</id> > <name>Maven Repo for Karaf</name> > <url>https://mvnrepository.com/artifact</url> > </repository> > > > </repositories> > </project> > > > > > > and the karaf log file in attachment karaf.log > <http://karaf.922171.n3.nabble.com/file/t498205/karaf.log> . > > Thanks in advance. > > Luca Leonardi > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html >