ClassCastException, cannot be cast to org.apache.felix.gogo.commands.Action

2015-04-14 Thread XiLai Dai
Hi, The custom console commands we developed on karaf 2.x don't work anymore on the karaf 4.0 The code used on 2.x: import org.apache.felix.gogo.commands.Command; import org.apache.karaf.features.command.FeaturesCommandSupport; @Command(scope = "test", name = "switch-abc", description = "test c

Re: ClassCastException, cannot be cast to org.apache.felix.gogo.commands.Action

2015-04-14 Thread Jean-Baptiste Onofré
Hi Xilai, the command annotations now comes from org.apache.karaf package. It was already deprecated in K3 but still working. Did you upgrade the completers as well ? regards JB On 04/14/2015 11:44 AM, XiLai Dai wrote: Hi, The custom console commands we developed on karaf 2.x don’t work an

Where to store native libs?

2015-04-14 Thread Richard Hierlmeier
Hi guys, has karaf a common directory where native libs should be stored? I have the problem that a JNI wrapper shared lib needs two third party shared libs. The wrapper shared lib is contained in a bundle jar. But where must the third party lib be stored? Richard

Re: Where to store native libs?

2015-04-14 Thread Krzysztof Sobkowiak
Hi Please check this thread http://karaf.922171.n3.nabble.com/Native-library-and-System-load-td4032562.html. As described there you should put the library in the `lib` directory. regards Krzysztof On 14.04.2015 14:07, Richard Hierlmeier wrote: > > Hi guys, > > has karaf a common directory wher

Question about kars vs custom distribution

2015-04-14 Thread Ryan Moquin
I was wondering if anyone could explain the situations when you would use a custom distribution for Karaf vs a kar with the Karaf configurations customized? Is it preference? Or is there an advantage of one over the other? Ryan

Re: Question about kars vs custom distribution

2015-04-14 Thread Jamie G.
Kars when you want a the full application deployed as one - custom distribution when you have a full complex setup you need to deliver. Ex: An application composed of a bunch of routes -- a Kar would suffice. Ex: A full SDN controller - build a distribution such as OpenDaylight or NSOS. On Tue, A

Help using Gradle to create a custom Karaf assembly

2015-04-14 Thread Tim Moloney
Has anyone created a Gradle build script to create a custom Karaf assembly? I work on project whose application is developed on a network with Internet access, but runs on a standalone computer (no Internet access). We currently create a custom Karaf assembly using Maven and then install the asse

Re: Help using Gradle to create a custom Karaf assembly

2015-04-14 Thread Jamie G.
Hi Tim, My initial thoughts is to build a Kar then deploy that to the machine with out internet access. Would it be possible for you to build an offline Maven repo of artifacts for your build environment? See Cave: https://karaf.apache.org/index/subprojects/cave.html Or use the Karaf-Maven-Plugi