Hi Achim,
as I wrote before, I succeeded to bundle:install another bundle. But maybe this
was done via global maven repo. Now I disconnected the computer from network,
bundle:uninstall(ed) the bundle, that I successfully installed before, and
reinstalled it again with bundle:install. It
I would say, the default path in org.ops4j.pax.url.mvn.cfg is right. Looking in
user.home/.m2/repository, I find the respective jar in the right place:
~/.m2/repository/com/packt/sample/1.0.0-SNAPSHOT/sample-1.0.0-SNAPSHOT.jar
The settings file in ~/.m2 had no extension. I added .xml and tried
Now everything seems to work. Thank you all!
Christian
Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugs...@docuteam.ch
Am 11.03.2015 um 11:20 schrieb Morgan Hautman morgan.haut...@gmail.com:
Hi Christian,
I think that on Mac there
I think the problem is
localRepository${user.home}/.m2/repository/localRepository
Can you remove this?
Christian
On 11.03.2015 08:14, Christian Eugster wrote:
Hi Achim,
yes I tried from command line too, same result. Nearby my settings.xml from
~/.m2:
settings
Hi Christian,
Glad I could help.
Since all these issues and the book you're reading is about Karaf, maybe
post your issues on the Karaf mailing list next time. :)
http://karaf.apache.org/index/community/mailing-lists.html
On 11/03/2015 17:55, Christian Eugster wrote:
Now everything seems to
Hi Christian,
awesome :-)
regards, Achim
2015-03-11 17:55 GMT+01:00 Christian Eugster c.eugs...@docuteam.ch:
Now everything seems to work. Thank you all!
Christian
Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugs...@docuteam.ch
Hi Achim,
The descriptions in Apache Karaf Cookbook are really easy to understand, so I
don't think I missed something:
1. I installed karaf 3.0.3 from scratch
2. I feature:added-repo and feature:installed camel
3. I mvned install the sample module of chapter 2, recipe 2
4. I bundle:installed
Hi Christian,
I think that on Mac there is a problem with the 0.0.0.0 binding.
Try in etc/org.apache.karaf.management.cfg to change 0.0.0.0 to 127.0.0.1
On 11/03/2015 11:12, Christian Eugster wrote:
Hi Achim,
as I wrote before, I succeeded to bundle:install another bundle. But maybe this
Hi Christian,
I removed the line and IT WORKS! This problem is solved now, thank you.
Now there is the javax.naming.ConfigurationException (see mail before).
Regards Christian
Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugs...@docuteam.ch
Hi Christian,
this is rather strange effect you got there, is any of the other samples
working for you?
I somehow have the impression it's a missmatch of your local repo and the
repo defined in the Karaf server.
Anything else that is special on your machine?
regards, Achim
2015-03-11 8:14
Hi Christian,
this is rather strange. Are you still building with your eclipse mvn?
Do you happen to have a maven usable from command line?
Another thing, maybe you should post us your ${home}/.m2/settings.xml maybe
something strange there.
regards, Achim
2015-03-11 7:15 GMT+01:00 Christian
Hi Achim,
yes I tried from command line too, same result. Nearby my settings.xml from
~/.m2:
settings xmlns=http://maven.apache.org/SETTINGS/1.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/SETTINGS/1.0.0
Hello Christian,
You can check the karaf logs on why isn't your bundle installing / starting.
Regards,
-Yogesh
--
View this message in context:
http://camel.465427.n5.nabble.com/Error-when-executing-install-s-mvn-com-packt-sample-tp5763885p5763896.html
Sent from the Camel - Users mailing
I am not sure under which circumstance the automatic detection of the
LATEST version works but just add the actual version and you are fine.
Christian
On 10.03.2015 13:38, Christian Eugster wrote:
The example is from Apache Karaf Cookbook. I didn't change anything and
installed it in local
The example is from Apache Karaf Cookbook. I didn't change anything and
installed it in local maven repository without any problems.
Christian
Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugs...@docuteam.ch
Am 10.03.2015 um 13:32
Hi Yogesh,
thank you for responding. The log says, but I don't see what is wrong and I
don't understand what No highest version found for com.packt:sample:jar:(0.0,]
means.
2015-03-10 13:30:19,280 | ERROR | l for user karaf | ShellUtil
| 25 -
You probably forgot the version in the mvn: uri
Christian
On 10.03.2015 08:45, Christian Eugster wrote:
Hi,
I want to explore camel in karaf and for that I want install the sample bundle
provided by Apache Karaf Cookbook (Chapter 2, Recipe 2), I ran mvn:install and
found the installed
Hello Christian!
Looks like you did miss the version of the bundle installing.
Try following readme @ chapter2-recipe2/sample
https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter2/chapter2-recipe2/sample
Regards,
-Yogesh
--
View this message in context:
My local maven repository is at ~/.m2e. Maybe I have to configure this location
in karaf? Or reconfigure it in maven?
Christian
Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
+41 (0)56 470 03 37
c.eugs...@docuteam.ch
Am 10.03.2015 um 17:54 schrieb Christian
Can you try some of the examples from my site and see if you hit the
same problems?
I wonder if the problem is specific to the packt example or general.
http://liquid-reality.de/display/liquid/Karaf+Tutorials
https://github.com/cschneider/Karaf-Tutorial
Christian
On 10.03.2015 18:20,
Hi Christian,
I tried tasklist/pom.xml and got the following stacktrace while mvn install:
2015-03-10 19:04:16,193 | WARN | FelixStartLevel | AetherBasedResolver
| 44 - org.ops4j.pax.url.mvn - 1.6.0 | Error resolving
Maybe your maven repository is not at the default location.
Karaf will then not use it and so at runtime you do not find the class.
Christian
On 10.03.2015 17:26, Christian Eugster wrote:
HI Christian,
sorry to bother you. I did like the book describes: I did first an mvn:install
from
bundle:install should work. But you need to first build the example locally.
Christian
On 10.03.2015 16:39, Christian Eugster wrote:
Hi Yogesh + Christian,
that does not work neither: osgi:install is not known bei karaf (3.0.3). And
bundle:install -s mvn:com.packt/sample/1.0.0-SNAPSHOT does
HI Christian,
sorry to bother you. I did like the book describes: I did first an mvn:install
from eclipse (with success). After that I did the bundle:install -s
mvn:com.packt/sample in different variations (with and without version). Does
not work. Don't know, what I am missing.
Regards
You can configure it in etc/org.ops4j.pax.url.mvn.cfg but using the
default will save you from many problems.
Christian
On 10.03.2015 17:58, Christian Eugster wrote:
My local maven repository is at ~/.m2e. Maybe I have to configure this location
in karaf? Or reconfigure it in maven?
--
If you reply to this email, your message will be added to the discussion
below:
http://camel.465427.n5.nabble.com/Error-when-executing-install-s-mvn-com-packt-sample-tp5763885p5763941.html
To unsubscribe from Error when executing: install -s
mvn:com.packt/sample, click
Hi Yogesh + Christian,
that does not work neither: osgi:install is not known bei karaf (3.0.3). And
bundle:install -s mvn:com.packt/sample/1.0.0-SNAPSHOT does not work neither.
Any idea?
Thanks!
Regards Christian
Christian Eugster
Docuteam GmbH
Langacker 16
Postfach
CH-5405 Baden-Dättwil
Hi Christian,
I just verified if there is an issue with the sample, which isn't.
Did you follow the instructions in the book, also did you make sure the
Karaf is in a Vanilla state?
For recipe2 of chapter2 to work you need to have camel installed:
feature:repo-add
Hi,
I want to explore camel in karaf and for that I want install the sample bundle
provided by Apache Karaf Cookbook (Chapter 2, Recipe 2), I ran mvn:install and
found the installed bundle in ~/m2e repository. But when I try install -s
mvn:com.packt/sample from within karaf, I get an Error
29 matches
Mail list logo