Re: Best Practices for Web application published by Karaf

2017-03-30 Thread Achim Nierbeck
Hi, the Web-ContextPath is a OSGi Header and actually marks a WAR :D Therefore what Christian just provided is a nice way of using the default Servlet (Resource-Servlet) to use for static resources. Another way is to use the following: @Component( service = {Object.class, WhiteboardResou

Re: KARAF-4829 Make sure configFile in features makes config available early

2017-03-30 Thread Guillaume Nodet
By default, the plugin will write all configurations from startup and boot stages. For boot features, it can be further refined using the pidsToExtract parameter on the assembly mojo. For example the default karaf assembly does not extract configs for acls. In all cases, whether the configuratio

Re: KARAF-4829 Make sure configFile in features makes config available early

2017-03-30 Thread Jean-Baptiste Onofré
Hi, we did an improvement today around this. In the mean time, can't you provision the cfg file in the etc folder during assembly ? Regards JB On 03/30/2017 05:17 PM, CLEMENT Jean-Philippe wrote: We build our assembly with the plugin you mentioned. But the assembly itself, the .tar.gz does

Re: Returned objects from shell commands?

2017-03-30 Thread Toni Menzel
There is an appnote from Peter for that: http://enroute.osgi.org/appnotes/gogo-cmd.html *Toni Menzel* *www.rebaze.de | www.rebaze.com | @rebazeio * On Thu, Mar 30, 2017 at 4:52 PM, Jörg Weule wrote: > Hello, > > w

RE: KARAF-4829 Make sure configFile in features makes config available early

2017-03-30 Thread CLEMENT Jean-Philippe
We build our assembly with the plugin you mentioned. But the assembly itself, the .tar.gz does not contains the cfg files in the /etc. These files are populated in the /etc during the first startup. The problem is that the bundles are also started in parallel during the same time. So using them

Returned objects from shell commands?

2017-03-30 Thread Jörg Weule
Hello, what is the idea of the returned objects of shell commands? Unfortunately, they are printed to the console if not assigned to a shell variable. Commands like shell:wc is not returning an java.lang.Long if asked to return number of lines. It's tricky to compare the string of shell:tac to a

Re: Best Practices for Web application published by Karaf

2017-03-30 Thread Christian Schneider
I know Web-ContextPath is implemented by pax-web but I do not know if it is part of a standard. I am sure Achim knows this. Christian 2017-03-30 11:34 GMT+02:00 Cristiano Costantini < cristiano.costant...@gmail.com>: > Hi All and thank you for your support, > the solution suggested by Christian

Re: Best Practices for Web application published by Karaf

2017-03-30 Thread Cristiano Costantini
Hi All and thank you for your support, the solution suggested by Christian seems to me the simplest at the moment. Where can I find more documentation on how "Web-ContextPath" works? Do "Web-ContextPath" is an OSGi header or is it a Karaf specific header? does it is implemented using some some su

RE: Odd behaviour with bin/client

2017-03-30 Thread Anders
Hello! Thanks very much for your answer! I have tried now today to download the source 4.1.1 based on commit https://github.com/apache/karaf/commit/74a801a8e559f2899e47edd381cdff136808cd12 from https://github.com/apache/karaf/releases. I do still get errors though, which I really take as a si