You have to do as in the standard Karaf distribution: eventadmin should
be a startup feature to prevent pax-url refresh.

Take a look on:

https://github.com/apache/karaf/blob/master/assemblies/apache-karaf/pom.xml#L139

Regards
JB

On 01/04/2019 09:43, leonardchicco wrote:
> 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
> 

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

Reply via email to