karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Problem in installing feature - activemq-broker on Karaf 3.0.0
Date Tue, 05 Aug 2014 13:50:23 GMT
Hi Yogesh,

does your local repository proxy all artifacts from Central ?

Did you try with ActiveMQ 5.9.1 ?

The failing artifact is: 
org.apache.activemq:activemq-karaf:5.9.0:xml:activemq

which is actually available on central:
http://repo1.maven.org/maven2/org/apache/activemq/activemq-karaf/5.9.0/activemq-karaf-5.9.0-activemq.xml

(the features references this file in <configfile/> element).

I installed the activemq-broker feature on a Karaf 3.0.1 without 
problem, so I guess that maybe some artifacts are missing from your 
local repository.

Regards
JB

On 08/05/2014 03:33 PM, yogeshgolande wrote:
> Hi,
>
> I'm trying to install activemq 5.9.0 on Karaf and the repo-add works fine.
> Here is my repo-list regarding activemq:
> karaf@root()> feature:list  | grep activemq
> activemq-client                         | 5.9.0            |           |
> activemq-5.9.0           | ActiveMQ client libraries
> activemq                                | 5.9.0            |           |
> activemq-5.9.0           | ActiveMQ broker libraries
> activemq-broker-noweb                   | 5.9.0            |           |
> activemq-5.9.0           | Full ActiveMQ broker with default configuration
> activemq-broker                         | 5.9.0            |           |
> activemq-5.9.0           | Full ActiveMQ broker with default configuration
> an
> activemq-camel                          | 5.9.0            |           |
> activemq-5.9.0           |
> activemq-web-console                    | 5.9.0            | x         |
> activemq-5.9.0           |
> activemq-blueprint                      | 5.9.0            |           |
> activemq-5.9.0           |
>
> But when I try to install activemq-broker feature, I get this error:
>
> karaf@root()> feature:install activemq-broker
> 2014-08-05 17:14:45,570 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature
> activemq-broker 5.9.0
> 2014-08-05 17:14:45,573 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature activemq
> 5.9.0
> 2014-08-05 17:14:45,575 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature jetty
> 8.1.9.v20130131
> 2014-08-05 17:14:45,579 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature pax-jetty
> 8.1.14.v20131031
> 2014-08-05 17:14:45,595 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature
> activemq-client 5.9.0
> 2014-08-05 17:14:45,597 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature spring
> 3.2.4.RELEASE
> 2014-08-05 17:14:46,442 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature
> activemq-web-console 5.9.0
> 2014-08-05 17:14:46,444 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature war 3.0.0
> 2014-08-05 17:14:46,446 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature http 3.0.0
> 2014-08-05 17:14:46,449 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature pax-http
> 3.0.5
> 2014-08-05 17:14:46,471 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature pax-war
> 3.0.5
> 2014-08-05 17:14:46,473 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature
> pax-http-whiteboard 3.0.5
> 2014-08-05 17:14:46,495 | INFO  | Local user karaf | FeaturesServiceImpl
> | 1 - org.apache.karaf.features.core - 3.0.0 | Installing feature eventadmin
> 3.0.0
> 2014-08-05 17:14:47,280 | WARN  | Local user karaf | AetherBasedResolver
> | 44 - org.ops4j.pax.url.mvn - 1.6.0 | Error resolving
> artifactorg.apache.activemq:activemq-ka
> raf:xml:activemq:5.9.0:Could not find artifact
> org.apache.activemq:activemq-karaf:xml:activemq:5.9.0 in defaultlocal
> (file:/C:/Users/ygolande/.m2/repository/)
> org.sonatype.aether.resolution.ArtifactResolutionException: Could not find
> artifact org.apache.activemq:activemq-karaf:xml:activemq:5.9.0 in
> defaultlocal (file:/C:/Users/ygolande/.
> m2/repository/)
>          at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
>          at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
>          at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
>          at
> org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
>          at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:250)
>          at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:239)
>          at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:223)
>          at
> org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:122)
>          at java.net.URL.openStream(URL.java:1010)[:1.6.0_45]
>          at
> org.apache.karaf.features.internal.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:133)
>          at
> org.apache.karaf.features.internal.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:100)
>          at
> org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:517)
>          at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:383)
>          at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:363)
>          at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:352)
>          at Proxy66894525_1018_46f0_a6fa_dc9f309336b1.installFeature(Unknown
> Source)
>          at
> org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)
>          at
> org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)
>          at
> org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
>          at
> org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
>          at
> org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
>          at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_45]
>          at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_45]
>          at
> org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
>          at
> org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
>          at
> org.apache.karaf.shell.console.commands.$BlueprintCommand99040781.execute(Unknown
> Source)[47:org.apache.karaf.shell.console:3.0.0]
>          at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_45]
>          at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_45]
>          at
> org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
>          at
> org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
>          at
> org.apache.karaf.shell.console.commands.$BlueprintCommand99040781.execute(Unknown
> Source)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:497)
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:198)
>          at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:118)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:109)
>          at java.security.AccessController.doPrivileged(Native
> Method)[:1.6.0_45]
>          at
> org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[48:org.apache.karaf.jaas.modules:3.0.0]
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:107)[47:org.apache.karaf.shell.console:3.0.0]
> Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not
> find artifact org.apache.activemq:activemq-karaf:xml:activemq:5.9.0 in
> defaultlocal (file:/C:/Users/ygo
> lande/.m2/repository/)
>          at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:947)[44:org.ops4j.pax.url.mvn:1.6.0]
>          at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)[44:org.ops4j.pax.url.mvn:1.6.0]
>          at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)[44:org.ops4j.pax.url.mvn:1.6.0]
>          at
> org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)[44:org.ops4j.pax.url.mvn:1.6.0]
>          at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_45]
>          at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_45]
>          at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]
> 2014-08-05 17:14:48,000 | ERROR | Local user karaf | ShellUtil
> | 47 - org.apache.karaf.shell.console - 3.0.0 | Exception caught while
> executing command
> java.io.IOException: Error resolving artifact
> org.apache.activemq:activemq-karaf:xml:activemq:5.9.0: Could not find
> artifact org.apache.activemq:activemq-karaf:xml:activemq:5.9.0 i
> n defaultlocal (file:/C:/Users/ygolande/.m2/repository/)
>          at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:258)
>          at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:239)
>          at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:223)
>          at
> org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:122)
>          at java.net.URL.openStream(URL.java:1010)[:1.6.0_45]
>          at
> org.apache.karaf.features.internal.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:133)
>          at
> org.apache.karaf.features.internal.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:100)
>          at
> org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:517)
>          at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:383)
>          at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:363)
>          at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:352)
>          at Proxy66894525_1018_46f0_a6fa_dc9f309336b1.installFeature(Unknown
> Source)
>          at
> org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)
>          at
> org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)
>          at
> org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
>          at
> org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
>          at
> org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
>          at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_45]
>          at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_45]
>          at
> org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
>          at
> org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
>          at
> org.apache.karaf.shell.console.commands.$BlueprintCommand99040781.execute(Unknown
> Source)[47:org.apache.karaf.shell.console:3.0.0]
>          at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_45]
>          at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_45]
>          at
> org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
>          at
> org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
>          at
> org.apache.karaf.shell.console.commands.$BlueprintCommand99040781.execute(Unknown
> Source)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:497)
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:198)
>          at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:118)[47:org.apache.karaf.shell.console:3.0.0]
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:109)
>          at java.security.AccessController.doPrivileged(Native
> Method)[:1.6.0_45]
>          at
> org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[48:org.apache.karaf.jaas.modules:3.0.0]
>          at
> org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:107)[47:org.apache.karaf.shell.console:3.0.0]
> Error executing command: Error resolving artifact
> org.apache.activemq:activemq-karaf:xml:activemq:5.9.0: Could not find
> artifact org.apache.activemq:activemq-karaf:xml:activemq:5.9
> .0 in defaultlocal (file:/C:/Users/ygolande/.m2/repository/)
> karaf@root()>
>
> What is strange is that I'm using an internal repository and it bypasses it
> and searches for file. This is the configuration in
> org.ops4j.pax.url.mvn.cfg file
> org.ops4j.pax.url.mvn.repositories= \
> 	file:${karaf.home}/${karaf.default.repository}@id=system.repository, \
> 	http://r-build.myserver.com/nexus/content/repositories/REP/,	\
>          file:${karaf.data}/kar@id=kar.repository@multi
>
> Did anyone faced this problem before? Please help me in fixing this issue.
> I want to do a POC for SOAP to JMS (request-reply/INOUT) route using
> activemq and blueprint.
>
> BR!
> Yogesh
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Problem-in-installing-feature-activemq-broker-on-Karaf-3-0-0-tp4034595.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

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

Mime
View raw message