You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by leonardchicco <lu...@gmail.com> on 2019/03/30 11:22:36 UTC

Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Hi, 

 I need to integrate the ActiveMQ in a custom distribution, when i start the
Karaf the console has follow error logs.

================================================================
org.apache.karaf.features.core[org.apache.karaf.features.internal.service.FeaturesServiceImpl]
: Unknown protocol: mvn
java.net.MalformedURLException: Unknown protocol: mvn
        at java.net.URL.<init>(URL.java:627)
        at java.net.URL.<init>(URL.java:490)
        at java.net.URL.<init>(URL.java:439)
        at
org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:238)
        at
org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155)
        at
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174)
        at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
        at
org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
        at java.net.URL.<init>(URL.java:622)
        ... 13 more
org.apache.karaf.features.core[org.apache.karaf.features.internal.service.BootFeaturesInstaller]
: Error installing boot features
java.net.MalformedURLException: Unknown protocol: mvn
        at java.net.URL.<init>(URL.java:627)
        at java.net.URL.<init>(URL.java:490)
        at java.net.URL.<init>(URL.java:439)
        at
org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:238)
        at
org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155)
        at
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174)
        at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
        at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
        at
org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
        at java.net.URL.<init>(URL.java:622)
        ... 13 more


==================================================

Follow in attachment the project 

offline-karaf.zip
<http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip>  

Environment
jdk: 1.8.0_201
mvn: 3.6.0

Can you help me to resolve this problem?

Thanks in advance

Luca Leonardi





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by leonardchicco <lu...@gmail.com>.
=================
Thanks to all!
Great job
=================

Luca Leonardi



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hello

Yes Luca - I mentioned this. standard features should have "compile" scope
(or no <scope>, which amounts to the same), to ensure eventadmin is
resolved at startup stage and gets into etc/startup.properties.

regards
Grzegorz Grzybek

pon., 1 kwi 2019 o 18:33 Jean-Baptiste Onofré <jb...@nanthrax.net> napisał(a):

> The problem is that etc/startup.properties doesn't contain eventadmin ;)
>
> You should have the following line in etc/startup.properties:
>
> mvn\:org.apache.karaf.services/org.apache.karaf.services.eventadmin/4.2.4 =
> 5
>
> I see several issues in your pom.xml:
>
> 1. you should have the framework feature in runtime scope:
>
>         <dependency>
>             <groupId>org.apache.karaf.features</groupId>
>             <artifactId>framework</artifactId>
>             <classifier>features</classifier>
>             <type>xml</type>
>             <scope>runtime</scope>
>         </dependency>
>
> 2. standard feature should not be in runtime but in compile scope:
>
>         <dependency>
>             <groupId>org.apache.karaf.features</groupId>
>             <artifactId>standard</artifactId>
>             <classifier>features</classifier>
>             <type>xml</type>
>         </dependency>
>
> I did this two changes in your pom.xml and eventadmin is now part of
> etc/startup.properties.
>
> And now, it works.
>
> Regards
> JB
>
> On 01/04/2019 17:42, leonardchicco wrote:
> > I tried the your proposal solution,  but for me doesn't work.
> > In attachment the all zip contain all files of my project
> > Can you take a look and say to me the solution?
> > Thanks in advance.
> >
> > Luca Leonardi
> >
> >
> > offline-karaf.zip
> > <http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip>
> >
> >
> >
> > --
> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
The problem is that etc/startup.properties doesn't contain eventadmin ;)

You should have the following line in etc/startup.properties:

mvn\:org.apache.karaf.services/org.apache.karaf.services.eventadmin/4.2.4 =
5

I see several issues in your pom.xml:

1. you should have the framework feature in runtime scope:

        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>

2. standard feature should not be in runtime but in compile scope:

        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
        </dependency>

I did this two changes in your pom.xml and eventadmin is now part of
etc/startup.properties.

And now, it works.

Regards
JB

On 01/04/2019 17:42, leonardchicco wrote:
> I tried the your proposal solution,  but for me doesn't work.
> In attachment the all zip contain all files of my project
> Can you take a look and say to me the solution?
> Thanks in advance.
> 
> Luca Leonardi
> 
> 
> offline-karaf.zip
> <http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip>  
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

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

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by leonardchicco <lu...@gmail.com>.
I tried the your proposal solution,  but for me doesn't work.
In attachment the all zip contain all files of my project
Can you take a look and say to me the solution?
Thanks in advance.

Luca Leonardi


offline-karaf.zip
<http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip>  



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by Grzegorz Grzybek <gr...@gmail.com>.
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 <lu...@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
>

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by leonardchicco <lu...@gmail.com>.
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

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, it's what I said: the stage is missing in boot feature IMHO ;)

Regards
JB

On 01/04/2019 08:12, Grzegorz Grzybek wrote:
> Hello
> 
> pax-url-aether is the bundle that provides mvn: URL handler. "Unknown
> protocol: mvn" means (99%) that you used activemq feature at boot stage
> without adding pax-url-aether bundle at startup stage. Can you share your
> karaf-maven-plugin configuration?
> 
> regards
> Grzegorz Grzybek
> 
> sob., 30 mar 2019 o 13:47 Jean-Baptiste Onofré <jb...@nanthrax.net> napisał(a):
> 
>> Hi
>>
>> Did you use a stage in boot features ?
>>
>> Regards
>> JB
>>
>> Le 30 mars 2019 à 12:32, à 12:32, leonardchicco <
>> luca.leonardi1974@gmail.com> a écrit:
>>> Hi,
>>>
>>> I need to integrate the ActiveMQ in a custom distribution, when i start
>>> the
>>> Karaf the console has follow error logs.
>>>
>>> ================================================================
>>
>>> org.apache.karaf.features.core[org.apache.karaf.features.internal.service.FeaturesServiceImpl]
>>> : Unknown protocol: mvn
>>> java.net.MalformedURLException: Unknown protocol: mvn
>>>        at java.net.URL.<init>(URL.java:627)
>>>        at java.net.URL.<init>(URL.java:490)
>>>        at java.net.URL.<init>(URL.java:439)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:238)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>        at
>>
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>>        at
>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>>        at java.lang.Thread.run(Thread.java:748)
>>> Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
>>>        at
>>
>>> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
>>>        at java.net.URL.<init>(URL.java:622)
>>>        ... 13 more
>>
>>> org.apache.karaf.features.core[org.apache.karaf.features.internal.service.BootFeaturesInstaller]
>>> : Error installing boot features
>>> java.net.MalformedURLException: Unknown protocol: mvn
>>>        at java.net.URL.<init>(URL.java:627)
>>>        at java.net.URL.<init>(URL.java:490)
>>>        at java.net.URL.<init>(URL.java:439)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:238)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
>>>        at
>>
>>> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
>>>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>        at
>>
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>>        at
>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>>        at java.lang.Thread.run(Thread.java:748)
>>> Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
>>>        at
>>
>>> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
>>>        at java.net.URL.<init>(URL.java:622)
>>>        ... 13 more
>>>
>>>
>>> ==================================================
>>>
>>> Follow in attachment the project
>>>
>>> offline-karaf.zip
>>> <http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip>
>>>
>>> Environment
>>> jdk: 1.8.0_201
>>> mvn: 3.6.0
>>>
>>> Can you help me to resolve this problem?
>>>
>>> Thanks in advance
>>>
>>> Luca Leonardi
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
>>
> 

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

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by leonardchicco <lu...@gmail.com>.
In attachement there is a zip contains the full project

Thanks in advance



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hello

pax-url-aether is the bundle that provides mvn: URL handler. "Unknown
protocol: mvn" means (99%) that you used activemq feature at boot stage
without adding pax-url-aether bundle at startup stage. Can you share your
karaf-maven-plugin configuration?

regards
Grzegorz Grzybek

sob., 30 mar 2019 o 13:47 Jean-Baptiste Onofré <jb...@nanthrax.net> napisał(a):

> Hi
>
> Did you use a stage in boot features ?
>
> Regards
> JB
>
> Le 30 mars 2019 à 12:32, à 12:32, leonardchicco <
> luca.leonardi1974@gmail.com> a écrit:
> >Hi,
> >
> >I need to integrate the ActiveMQ in a custom distribution, when i start
> >the
> >Karaf the console has follow error logs.
> >
> >================================================================
>
> >org.apache.karaf.features.core[org.apache.karaf.features.internal.service.FeaturesServiceImpl]
> >: Unknown protocol: mvn
> >java.net.MalformedURLException: Unknown protocol: mvn
> >        at java.net.URL.<init>(URL.java:627)
> >        at java.net.URL.<init>(URL.java:490)
> >        at java.net.URL.<init>(URL.java:439)
> >        at
>
> >org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:238)
> >        at
>
> >org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155)
> >        at
>
> >org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297)
> >        at
>
> >org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174)
> >        at
>
> >org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926)
> >        at
>
> >org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
> >        at
>
> >org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
> >        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> >        at
>
> >java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> >        at
>
> >java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> >        at java.lang.Thread.run(Thread.java:748)
> >Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
> >        at
>
> >org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
> >        at java.net.URL.<init>(URL.java:622)
> >        ... 13 more
>
> >org.apache.karaf.features.core[org.apache.karaf.features.internal.service.BootFeaturesInstaller]
> >: Error installing boot features
> >java.net.MalformedURLException: Unknown protocol: mvn
> >        at java.net.URL.<init>(URL.java:627)
> >        at java.net.URL.<init>(URL.java:490)
> >        at java.net.URL.<init>(URL.java:439)
> >        at
>
> >org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:238)
> >        at
>
> >org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155)
> >        at
>
> >org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297)
> >        at
>
> >org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174)
> >        at
>
> >org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926)
> >        at
>
> >org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
> >        at
>
> >org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
> >        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> >        at
>
> >java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> >        at
>
> >java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> >        at java.lang.Thread.run(Thread.java:748)
> >Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
> >        at
>
> >org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
> >        at java.net.URL.<init>(URL.java:622)
> >        ... 13 more
> >
> >
> >==================================================
> >
> >Follow in attachment the project
> >
> >offline-karaf.zip
> ><http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip>
> >
> >Environment
> >jdk: 1.8.0_201
> >mvn: 3.6.0
> >
> >Can you help me to resolve this problem?
> >
> >Thanks in advance
> >
> >Luca Leonardi
> >
> >
> >
> >
> >
> >--
> >Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
>

Re: Karaf 4.2.4 Custom distribution with ActiveMQ 5.15.9 fails during start

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi

Did you use a stage in boot features ?

Regards
JB

Le 30 mars 2019 à 12:32, à 12:32, leonardchicco <lu...@gmail.com> a écrit:
>Hi, 
>
>I need to integrate the ActiveMQ in a custom distribution, when i start
>the
>Karaf the console has follow error logs.
>
>================================================================
>org.apache.karaf.features.core[org.apache.karaf.features.internal.service.FeaturesServiceImpl]
>: Unknown protocol: mvn
>java.net.MalformedURLException: Unknown protocol: mvn
>        at java.net.URL.<init>(URL.java:627)
>        at java.net.URL.<init>(URL.java:490)
>        at java.net.URL.<init>(URL.java:439)
>        at
>org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:238)
>        at
>org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155)
>        at
>org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297)
>        at
>org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174)
>        at
>org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926)
>        at
>org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
>        at
>org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>        at
>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>        at
>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>        at java.lang.Thread.run(Thread.java:748)
>Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
>        at
>org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
>        at java.net.URL.<init>(URL.java:622)
>        ... 13 more
>org.apache.karaf.features.core[org.apache.karaf.features.internal.service.BootFeaturesInstaller]
>: Error installing boot features
>java.net.MalformedURLException: Unknown protocol: mvn
>        at java.net.URL.<init>(URL.java:627)
>        at java.net.URL.<init>(URL.java:490)
>        at java.net.URL.<init>(URL.java:439)
>        at
>org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:238)
>        at
>org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:155)
>        at
>org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:297)
>        at
>org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1174)
>        at
>org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:926)
>        at
>org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
>        at
>org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:994)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>        at
>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>        at
>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>        at java.lang.Thread.run(Thread.java:748)
>Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
>        at
>org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
>        at java.net.URL.<init>(URL.java:622)
>        ... 13 more
>
>
>==================================================
>
>Follow in attachment the project 
>
>offline-karaf.zip
><http://karaf.922171.n3.nabble.com/file/t498205/offline-karaf.zip>  
>
>Environment
>jdk: 1.8.0_201
>mvn: 3.6.0
>
>Can you help me to resolve this problem?
>
>Thanks in advance
>
>Luca Leonardi
>
>
>
>
>
>--
>Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html