You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Gareth <ga...@gmail.com> on 2013/12/26 00:40:53 UTC
Karaf 3.0.0 Questions
Hello,
I would first like to say thankyou for releasing Karaf 3.0.0. Just in time
for Christmas! Great work!
Of course, as soon as you released it I decided to download and play with
it. After my initial play, I have a few questions:
(1) The first thing I tried to do was install activemq, and of course I got
the URL wrong the first time (I also know now that I don't need to know the
full URL for activemq as it is in the features.repo file). I mention this
because the error message appeared confusing:
karaf@root()> feature:repo-add
mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
Error executing command: Error resolving artifact
org.apache.activemq:activemq-karaf:features:xml:5.9.0: Could not find
artifact org.apache.activemq:activemq-karaf:features:xml:5.9.0 in
defaultlocal (file:/home/gcollins/.m2/repository/)
Is this error message coming from karaf or pax-url? When I saw this the
first time I thought it meant that external repositories (i.e maven central)
were not configured. Is it confusing to anyone else?
(2) I understand that activemq uses hawtio now for the webconsole so I tried
to install that:
karaf@root()> feature:install hawtio
Error executing command: Could not start bundle
mvn:io.hawt/hawtio-karaf-terminal/1.2.1/war in feature(s)
hawtio-karaf-terminal-1.2.1: The bundle "io.hawt.hawtio-karaf-terminal_1.2.1
[164]" could not be resolved. Reason: Missing Constraint: Import-Package:
org.apache.karaf.shell.console.jline; version="[2.2.0,3.0.0)"
Is this a known hawtio issue? If not, where should I open an issue for this?
(3) Any plans to update to javax.annotations 1.2? I ask because this is a
dependency for jersey 2 (I am mulling upgrading from jetty 1.x). Or is this
something irrelevant to karaf (i.e. this is purely an app level
responsibility)?
thanks in advance,
Gareth
--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-0-Questions-tp4030800.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Karaf 3.0.0 Questions
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Gareth
I gonna improve the message in Pax URL.
Regards
JB
On 12/27/2013 07:20 AM, Gareth wrote:
> Hello Jean-Baptiste,
>
> You are right. I was getting the URL wrong :).
>
> I only brought this up because I thought the new message was confusing. The
> karaf 2.3.3 message was clear to me:
>
> karaf@root> features:addurl
> mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
> Error executing command: Unable to add repositories:
> URL [mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml] could not
> be resolved.
>
> The 3.0.0 error "Could not find artifact xxx in defaultlocal
> (file:/home/<user>/.m2/repository)" suggests that I don't have any remote
> repositories configured.
>
> I will take a look at the pax url code.
>
> thanks again,
> Gareth
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-0-Questions-tp4030800p4030814.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf 3.0.0 Questions
Posted by Kevin Carr <ks...@gmail.com>.
I thought that the following was the way to do activemq?
Feature:chooseurl activemq 5.9.0
On Dec 27, 2013 12:20 AM, "Gareth" <ga...@gmail.com> wrote:
> Hello Jean-Baptiste,
>
> You are right. I was getting the URL wrong :).
>
> I only brought this up because I thought the new message was confusing. The
> karaf 2.3.3 message was clear to me:
>
> karaf@root> features:addurl
> mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
> Error executing command: Unable to add repositories:
> URL [mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml]
> could not
> be resolved.
>
> The 3.0.0 error "Could not find artifact xxx in defaultlocal
> (file:/home/<user>/.m2/repository)" suggests that I don't have any remote
> repositories configured.
>
> I will take a look at the pax url code.
>
> thanks again,
> Gareth
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Karaf-3-0-0-Questions-tp4030800p4030814.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Re: Karaf 3.0.0 Questions
Posted by Gareth <ga...@gmail.com>.
Hello Jean-Baptiste,
You are right. I was getting the URL wrong :).
I only brought this up because I thought the new message was confusing. The
karaf 2.3.3 message was clear to me:
karaf@root> features:addurl
mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
Error executing command: Unable to add repositories:
URL [mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml] could not
be resolved.
The 3.0.0 error "Could not find artifact xxx in defaultlocal
(file:/home/<user>/.m2/repository)" suggests that I don't have any remote
repositories configured.
I will take a look at the pax url code.
thanks again,
Gareth
--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-0-Questions-tp4030800p4030814.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Karaf 3.0.0 Questions
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Gareth,
regarding ActiveMQ, you don't use the right URL. You have to use:
karaf@root()> feature:repo-add
mvn:org.apache.activemq/activemq-karaf/5.9.0/xml/features
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.9.0/xml/features
Not
karaf@root()> feature:repo-add
mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
Error executing command: Error resolving artifact
org.apache.activemq:activemq-karaf:features:xml:5.9.0: Could not find
artifact org.apache.activemq:activemq-karaf:features:xml:5.9.0 in
defaultlocal (file:/home/jbonofre/.m2/repository/)
As reminder, you can use this (easier and straight forward):
karaf@root()> feature:repo-add activemq 5.9.0
Regards
JB
On 12/26/2013 12:40 AM, Gareth wrote:
> Hello,
>
> I would first like to say thankyou for releasing Karaf 3.0.0. Just in time
> for Christmas! Great work!
>
> Of course, as soon as you released it I decided to download and play with
> it. After my initial play, I have a few questions:
>
> (1) The first thing I tried to do was install activemq, and of course I got
> the URL wrong the first time (I also know now that I don't need to know the
> full URL for activemq as it is in the features.repo file). I mention this
> because the error message appeared confusing:
>
> karaf@root()> feature:repo-add
> mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
> Adding feature url mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
> Error executing command: Error resolving artifact
> org.apache.activemq:activemq-karaf:features:xml:5.9.0: Could not find
> artifact org.apache.activemq:activemq-karaf:features:xml:5.9.0 in
> defaultlocal (file:/home/gcollins/.m2/repository/)
>
> Is this error message coming from karaf or pax-url? When I saw this the
> first time I thought it meant that external repositories (i.e maven central)
> were not configured. Is it confusing to anyone else?
>
> (2) I understand that activemq uses hawtio now for the webconsole so I tried
> to install that:
>
> karaf@root()> feature:install hawtio
> Error executing command: Could not start bundle
> mvn:io.hawt/hawtio-karaf-terminal/1.2.1/war in feature(s)
> hawtio-karaf-terminal-1.2.1: The bundle "io.hawt.hawtio-karaf-terminal_1.2.1
> [164]" could not be resolved. Reason: Missing Constraint: Import-Package:
> org.apache.karaf.shell.console.jline; version="[2.2.0,3.0.0)"
>
> Is this a known hawtio issue? If not, where should I open an issue for this?
>
> (3) Any plans to update to javax.annotations 1.2? I ask because this is a
> dependency for jersey 2 (I am mulling upgrading from jetty 1.x). Or is this
> something irrelevant to karaf (i.e. this is purely an app level
> responsibility)?
>
> thanks in advance,
> Gareth
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-0-Questions-tp4030800.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Karaf 3.0.0 Questions
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Gareth,
1/ it comes from Pax URL, not able to resolve the features XML. Do you
have network issue ? I gonna check on a VM.
2/ It's an issue in HawtIO and import range that it defines. I gonna
submit a patch to support Karaf 3.0.0.
3/ You can already upgrade yourself by updating the etc/jre.properties
and system.properties to export the expected version.
I'm checking to do it "natively" for Karaf 3.0.1.
Regards
JB
On 12/26/2013 12:40 AM, Gareth wrote:
> Hello,
>
> I would first like to say thankyou for releasing Karaf 3.0.0. Just in time
> for Christmas! Great work!
>
> Of course, as soon as you released it I decided to download and play with
> it. After my initial play, I have a few questions:
>
> (1) The first thing I tried to do was install activemq, and of course I got
> the URL wrong the first time (I also know now that I don't need to know the
> full URL for activemq as it is in the features.repo file). I mention this
> because the error message appeared confusing:
>
> karaf@root()> feature:repo-add
> mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
> Adding feature url mvn:org.apache.activemq/activemq-karaf/5.9.0/features/xml
> Error executing command: Error resolving artifact
> org.apache.activemq:activemq-karaf:features:xml:5.9.0: Could not find
> artifact org.apache.activemq:activemq-karaf:features:xml:5.9.0 in
> defaultlocal (file:/home/gcollins/.m2/repository/)
>
> Is this error message coming from karaf or pax-url? When I saw this the
> first time I thought it meant that external repositories (i.e maven central)
> were not configured. Is it confusing to anyone else?
>
> (2) I understand that activemq uses hawtio now for the webconsole so I tried
> to install that:
>
> karaf@root()> feature:install hawtio
> Error executing command: Could not start bundle
> mvn:io.hawt/hawtio-karaf-terminal/1.2.1/war in feature(s)
> hawtio-karaf-terminal-1.2.1: The bundle "io.hawt.hawtio-karaf-terminal_1.2.1
> [164]" could not be resolved. Reason: Missing Constraint: Import-Package:
> org.apache.karaf.shell.console.jline; version="[2.2.0,3.0.0)"
>
> Is this a known hawtio issue? If not, where should I open an issue for this?
>
> (3) Any plans to update to javax.annotations 1.2? I ask because this is a
> dependency for jersey 2 (I am mulling upgrading from jetty 1.x). Or is this
> something irrelevant to karaf (i.e. this is purely an app level
> responsibility)?
>
> thanks in advance,
> Gareth
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-0-0-Questions-tp4030800.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com