Re: Karaf logging in JSON format

2016-02-29 Thread Debraj Manna
Thanks Achim for replying. I tried to have a fragment bundle of JSONEvenLayout . But whenever I am trying to start Karaf I am getting the below exception. I have listed down all the steps that I have been doing. Can you let me know what I am do

Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5

2016-03-02 Thread Debraj Manna
I have a simple Camel Application bundle which is to be deployed in Karaf 3.0.5 under Apache Service Mix 6.1. The configuration file is placed in etc/ directory (let's say it is named as wf.cfg). I want to have the dynamic config change functionality in my application bundle. So that whenever somet

Re: Dynamic Config Loading in Camel Application Bundle in Karaf 3.0.5

2016-03-03 Thread Debraj Manna
ode-house.org > Twitter: ldywicki > Blog: http://dywicki.pl > Code-House - http://code-house.org > > > > Wiadomość napisana przez Debraj Manna w dniu 2 > mar 2016, o godz. 12:50: > > > I have a simple Camel Application bundle which is to be deployed in Karaf > 3.0.

Getting a bundle state via script from Karaf 3.0.5

2016-03-10 Thread Debraj Manna
I can check a bundle state from Karaf Console by doing:- karaf@root>bundle:list | grep camel-test 246 | Active | 50 | 2.16.1 | camel-test Is there a way I can do this programatically via some script running on the same machine as Karaf or via some REST End Point that

Re: Getting a bundle state via script from Karaf 3.0.5

2016-03-10 Thread Debraj Manna
ra.com> wrote: > Hi, > > > Le 10/03/2016 13:17, Debraj Manna a écrit : > > I can check a bundle state from Karaf Console by doing:- > > karaf@root>bundle:list | grep camel-test > 246 | Active | 50 | 2.16.1 | camel-test > > Is there

Jackson Module Afterburner not working in Karaf 3.0.5

2016-05-07 Thread Debraj Manna
tMapper.registerModule(new AfterburnerModule()); I have placed the required code in github <https://github.com/debraj-manna/afterburner-issue> Has anyone able to execute the Jackson's Afterburner module in Karaf 3.0.5? Thanks, Debraj

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-05-07 Thread Debraj Manna
, > > 1. Can you check that the generated MANIFEST contains the afterburner > import ? > 2. If you install afterburner bundle after your bundle, you have to > refresh your bundle as it's an optional import > > Regards > JB > > > On 05/07/2016 05:27 PM, Debra

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-05-08 Thread Debraj Manna
java.lang.ClassLoader.defineClass(ClassLoader.java:642) at com.fasterxml.jackson.module.afterburner.util.MyClassLoader.loadAndResolve(MyClassLoader.java:94) ... 42 more On Sun, May 8, 2016 at 1:10 AM, Jean-Baptiste Onofré wrote: > Can you check with bundle:headers if it's correctly wired ? > >

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-05-08 Thread Debraj Manna
r is not imported, so not in the > classloader: that's the issue. > > Just add com.fasterxml.jackson.module.afterburner.ser in the > Import-Package. > > Regards > JB > > On 05/08/2016 09:21 AM, Debraj Manna wrote: > >> I updated to the latest Jackson:- >

Installing bundle from maven on Karaf Restart failing on Karaf 3.0.5

2016-05-09 Thread Debraj Manna
Hi, I want to install a bundle (if it is not already installed) from maven on Karaf restart. So to achieve this I added it in the /etc/startup.properties as below:- # add here bundles you want to install while system startup, e.g. # joda-time/joda-time/2.9/joda-time-2.9.jar=10 mvn\:com.fasterxml.

Re: Installing bundle from maven on Karaf Restart failing on Karaf 3.0.5

2016-05-11 Thread Debraj Manna
? > > Regards > JB > > On 05/09/2016 03:15 PM, Debraj Manna wrote: > >> Hi, >> >> I want to install a bundle (if it is not already installed) from maven >> on Karaf restart. So to achieve this I added it in the >> /etc/startup.properties as below:- >

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-05-11 Thread Debraj Manna
} Can you help me what could be going wrong? On Sun, May 8, 2016 at 2:22 PM, Jean-Baptiste Onofré wrote: > When you use *, maven-bundle-plugin/bnd is checking the actual import in > your byte code. Here, you "really" import > com.fasterxml.jackson.module.afterburner, bu

Re: Installing bundle from maven on Karaf Restart failing on Karaf 3.0.5

2016-05-11 Thread Debraj Manna
tartLevel(level); > } > > So, it seems that the framework is not yet full set, which is weird. > > Let me try to reproduce that. > > Regards > JB > > On 05/11/2016 06:06 PM, Debraj Manna wrote: > >> Hi Jean, >> >> As you suggested I tried ma

Re: Installing bundle from maven on Karaf Restart failing on Karaf 3.0.5

2016-05-19 Thread Debraj Manna
Jean, Were you able to reproduce this? On May 12, 2016 12:10 AM, "Debraj Manna" wrote: > Jean, > > I added only jackson-core on my start-up properties (removed > jackson-annotations) > > # joda-time/joda-time/2.9/joda-time-2.9.jar=10 > mvn\:com.fasterxml.jacks

Setting file.encoding in karaf

2016-06-11 Thread Debraj Manna
Hi How can we set file.encoding property in karaf?

Re: Setting file.encoding in karaf

2016-06-11 Thread Debraj Manna
How can we pass it in via the Karaf as you mentioned? On Jun 11, 2016 3:30 PM, "Jamie G." wrote: > You could pass it in via the karaf or start script: > -Dfile.encoding=ENCODING > > Cheers, > Jamie > > On Sat, Jun 11, 2016 at 7:26 AM, Debraj Manna > wr

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-06-14 Thread Debraj Manna
I am not able to make this work yet. Can some one suggest some thing what could be going wrong? On Wed, May 11, 2016 at 9:51 PM, Debraj Manna wrote: > Hi Jean, > > I am facing a similiar problem when I tried to use Afterburner from my toy > application to an actual code base. In t

Re: Jackson Module Afterburner not working in Karaf 3.0.5

2016-06-14 Thread Debraj Manna
Jun 2016, at 10:51, Debraj Manna wrote: I am not able to make this work yet. Can some one suggest some thing what could be going wrong? On Wed, May 11, 2016 at 9:51 PM, Debraj Manna wrote: > Hi Jean, > > I am facing a similiar problem when I tried to use Afterburner from my toy > ap

System Bundles are not starting on Karaf Restart

2016-06-22 Thread Debraj Manna
Hi, Sometimes on restarting Karaf some of our system bundles (e.g. - camel-jetty) are not starting. This is not happening always. Can you please let me know what could be the reason? I am using Karaf 3.0.5 running under Servicemix 6.1.0.

Re: System Bundles are not starting on Karaf Restart

2016-06-24 Thread Debraj Manna
Any thoughts what could be going wrong in my set-up? On Wed, Jun 22, 2016 at 3:40 PM, Debraj Manna wrote: > Hi, > > Sometimes on restarting Karaf some of our system bundles (e.g. - > camel-jetty) are not starting. This is not happening always. Can you > please let me know wh

Re: System Bundles are not starting on Karaf Restart

2016-06-24 Thread Debraj Manna
tatus of the bundles ? Resolved ? > > Regards > JB > > > On 06/22/2016 12:10 PM, Debraj Manna wrote: > >> Hi, >> >> Sometimes on restarting Karaf some of our system bundles (e.g. - >> camel-jetty) are not starting. This is not happening always. Can you >&

Re: System Bundles are not starting on Karaf Restart

2016-06-24 Thread Debraj Manna
essary mean "it's wrong". > > It's the case with the features resolve on Karaf 4. > > However, as you are using Karaf 3, I'm more suspecting something in the > start order. > > Do you use the deploy folder to deploy your artifacts ? > > Regards >

Re: System Bundles are not starting on Karaf Restart

2016-06-24 Thread Debraj Manna
encies > (in term of service especially) and your bundles. > > I would have to take a look on your bundles and usage of the deploy folder > to clearly identify the source of the problem. > > Regards > JB > > On 06/24/2016 01:04 PM, Debraj Manna wrote: > >> Yeah we u

Re: System Bundles are not starting on Karaf Restart

2016-06-24 Thread Debraj Manna
Missed the feature.xml. On Fri, Jun 24, 2016 at 4:47 PM, Debraj Manna wrote: > We are having only one of our custom bundle deployed on Karaf. > > My pom.xml, feature.xml are attached for that bundle. > > We also made some changes in org.apache.features.cfg & system.properti

Re: System Bundles are not starting on Karaf Restart

2016-06-25 Thread Debraj Manna
Will there be any help in my case if I move to Karaf 4? On Jun 24, 2016 4:54 PM, "Debraj Manna" wrote: > Missed the feature.xml. > > On Fri, Jun 24, 2016 at 4:47 PM, Debraj Manna > wrote: > >> We are having only one of our custom bundle deployed on Karaf. &g

Re: System Bundles are not starting on Karaf Restart

2016-06-27 Thread Debraj Manna
Since there is no useful information in the logs. How do I debug this issue? On Sat, Jun 25, 2016 at 4:56 PM, Debraj Manna wrote: > Will there be any help in my case if I move to Karaf 4? > On Jun 24, 2016 4:54 PM, "Debraj Manna" wrote: > >> Missed the feature.xml. &

Unable to resolve bundle as it exposed to package via two dependency chains

2016-06-28 Thread Debraj Manna
Hi Some time while starting a bundle (basecomponent) I am getting the below error. It seems it is because of the two different versions of fasterxml.jackson.annotations . basecomponent bundle is using fasterxml.jackson.annotations 2.7.4 . basecomponent bundle is also using camel-aws which may be u

Re: Unable to resolve bundle as it exposed to package via two dependency chains

2016-06-28 Thread Debraj Manna
and amazon for instance) ? > > Regards > JB > > On 06/28/2016 01:17 PM, Debraj Manna wrote: > >> Hi >> >> Some time while starting a bundle (basecomponent) I am getting the below >> error. It seems it is because of the two different versions of >> fa

Re: Unable to resolve bundle as it exposed to package via two dependency chains

2016-06-28 Thread Debraj Manna
elling you. Can you try to remove for example the bundle with the lower version and check if it works then? Christian 2016-06-28 15:47 GMT+02:00 Debraj Manna : > I checked from web-console:- > > basecomponent > Export-Package - --- > > > camel-aws > Export-Package - &

Re: Unable to resolve bundle as it exposed to package via two dependency chains

2016-06-29 Thread Debraj Manna
dependency=true for all bundles > that are dependencies of the top level bundle you really want. The karaf > feature service will then try to remove those duplicates and only install > one of the possible solutions. > > Christian > > > On 29.06.2016 08:04, Debraj Manna wrote: &g

Different log level for different Karaf Bundles

2016-06-29 Thread Debraj Manna
In Karaf 3.0.5 running under Servicemix 6.1.0 my org.ops4j.pax.logging.cfg looks like below:- # Root logger log4j.rootLogger=DEBUG, async, osgi:* log4j.throwableRenderer=org.apache.log4j.OsgiThrowableRenderer # To avoid flooding the log when using DEBUG level on an ssh connection and doing log:ta

Re: Different log level for different Karaf Bundles

2016-06-30 Thread Debraj Manna
BUG and bundle2 log level to be ERROR. On Thu, Jun 30, 2016 at 2:12 PM, Jean-Baptiste Onofré wrote: > Hi, > > I don't see the sift appender enable for the root logger. > > You should have: > > log4j.rootLogger=DEBUG, async, sift, osgi:* > > Regards > JB > >

Re: Different log level for different Karaf Bundles

2016-06-30 Thread Debraj Manna
.apache.aries.blueprint.core". >> >> It is also possible to configure custom logging for a particular camel >> context which we do in our integration platform based on Karaf and Camel. >> >> /Bengt >> >> >> >> >> >> >> >&g

Karaf Bundle Picking up some old dependency

2016-07-01 Thread Debraj Manna
Hi In one of my bundle I am having a dependency mentioned below:- com.github.arnabk java-dogstatsd-client 1.0.3 I am using a KAR packaging but after placing the bundle in Karaf. I am seeing it is importing version 1.0.1 of the library. Below is the import I am seeing from Karaf web

Re: Karaf Bundle Picking up some old dependency

2016-07-01 Thread Debraj Manna
I tried adding the dependency in features.xml. But still same issue. Any thoughts? On Jul 1, 2016 7:37 PM, "Debraj Manna" wrote: Hi In one of my bundle I am having a dependency mentioned below:- com.github.arnabk java-dogstatsd-client 1.0.3 I am using a KAR packaging

Re: Karaf Bundle Picking up some old dependency

2016-07-02 Thread Debraj Manna
pom.xml is here <https://gist.github.com/debraj-manna/5823bbea96c610c69a015ccd679b381a>. feature.xml is here <https://gist.github.com/debraj-manna/6e96d638e4797a1e4e223c455f7500e2>. There are no other installation which brings this version of library. On Sat, Jul 2, 2016 at 12:04 P

Re: Karaf Bundle Picking up some old dependency

2016-07-02 Thread Debraj Manna
d it should work. > > Christian > > 2016-07-02 11:05 GMT+02:00 Debraj Manna : > >> pom.xml is here >> <https://gist.github.com/debraj-manna/5823bbea96c610c69a015ccd679b381a>. >> feature.xml is here >> <https://gist.github.com/debraj-manna/6e96d638e47

Re: Karaf Bundle Picking up some old dependency

2016-07-02 Thread Debraj Manna
stian Schneider wrote: > Karaf does not magically pick up 1.0.1. If it appears then you added it to > the feature file. > > Christian > > 2016-07-02 18:09 GMT+02:00 Debraj Manna : > >> Sorry Christian. That is a typo. In spite of adding 1.0.3 of the library >> in p

Re: Karaf Bundle Picking up some old dependency

2016-07-02 Thread Debraj Manna
deploy folder), to cleanup the data folder or to > uninstall the bundle. > > Regards > JB > > On 07/02/2016 07:06 PM, Debraj Manna wrote: > >> Right Christian got the actual steps. >> >> I had the bundle running with 1.0.1 version of the library. Then in my &g

Re: Unable to resolve bundle as it exposed to package via two dependency chains

2016-07-10 Thread Debraj Manna
Moving to 4.0.5 and setting dependency=true I am not seeing the issue. On Jun 29, 2016 1:29 PM, "Christian Schneider" wrote: > On 29.06.2016 09:45, Debraj Manna wrote: > > Looking at the features.xml > <https://github.com/apache/camel/blob/master/platforms/karaf/fe