Re: Scheduler feature

2015-04-21 Thread Jean-Baptiste Onofré
Hi Michael, interesting indeed. We can just provide a scheduler feature leveraging it. I will create a Jira about that. Regards JB On 04/21/2015 10:15 PM, Michael Täschner wrote: Hi, have a look at the scheduler of Apache Sling [1]. Using it you just need to register a Runnable with service p

Re: Scheduler feature

2015-04-21 Thread Michael Täschner
Hi, have a look at the scheduler of Apache Sling [1]. Using it you just need to register a Runnable with service properties containing timer or cron expression. Very straight forward and only one other Sling dependency bundle required. Cheers, Michael [1] https://sling.apache.org/documentation/b

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Nataraj Basappa
Thanks for the pointer. If someone hits the problem again here is my findings Issue as you might see from the errors above in the thread was with missing dependency. I was using Log4J 2 in my parent pom and changing it to Log4j 1.2 fixed the errors. Thanks all for your inputs! -- Nataraj Basappa

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Achim Nierbeck
Hi, without further guessing. Might want to take a look on how Karaf itself is build by the plugin. [1] Maybe this'll get you to the right direction :) regards, Achim [1] - https://github.com/apache/karaf/blob/master/assemblies/apache-karaf/pom.xml 2015-04-21 16:49 GMT+02:00 Nataraj Basappa : >

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Nataraj Basappa
Thanks Achin, Its promising that I'm learning stuff. But error still exists and not sure whats causing it. I have build the vanilla distribution with just the options Jean gave above. Extracting built vanilla distribution and running, I can still see the error as follows in karaf.log. 2015-04-21 1

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread chris . gray
He'll probably need to do that in the bootclasspath At one time I actually believed that javax.* packages would always be "extra", meaning that 1) no java.* class would depend on a javax.* class and 2) therefore you could safely put all the javax.* classes into one or more jar-files in the ext/ d

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Achim Nierbeck
Hi, sorry if I might have confused you. But actually the log feature should add those. Just wanted to point out, that those bundles do give you the required packages. regards, Achim 2015-04-21 16:14 GMT+02:00 Nataraj Basappa : > Achim, > I'm new to Karaf and not sure how to include pax-loggi

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Nataraj Basappa
Achim, I'm new to Karaf and not sure how to include pax-logging bundles but I tried following configuration option under configuration directive of karaf-maven-plugin mvn:org.ops4j.pax.logging/pax-logging-api/1.8.1 mvn:org.ops4j.pax.logging/pax-logging-service/1.8.1 With out the abo

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread David Bosschaert
No, this doesn't work. The DataFlavor class explicitly uses the System Classloader to load classes. If that fails then it uses the TCCL. Because the javax.activation.DataHandler is also part of the JDK (since Java 6) it finds it in the JRE and that's where the LinkageError occurs. I have a workarou

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread Jamie G.
Can you manually set the class path in your bundle to pick up your classes first? I know that's a bit of a hack around, but if it works at least you can continue on... Cheers, Jamie On Tue, Apr 21, 2015 at 11:13 AM, David Bosschaert wrote: > I guess what I'm looking for is a bundle that I can i

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread David Bosschaert
I guess what I'm looking for is a bundle that I can install in an OSGi framework without having to change any startup properties etc... On 21 April 2015 at 14:39, Jamie G. wrote: > Great question. > > Can you override/replace it via the karaf etc/jre.properties file? > > Cheers, > Jamie > > On Tu

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Achim Nierbeck
You'll need to make sure the pax-logging bundles are present in your custom distribution. regards, Achim 2015-04-21 15:38 GMT+02:00 Nataraj Basappa : > Thanks Jean, for a quick response. That solved my initial problem of > building the custom distribution. > > But the built distribution when use

Re: javax.activation.DataHandler in OSGi

2015-04-21 Thread Jamie G.
Great question. Can you override/replace it via the karaf etc/jre.properties file? Cheers, Jamie On Tue, Apr 21, 2015 at 10:53 AM, David Bosschaert wrote: > Hi all, > > Apologies for posting to the Karaf list as this is not really a Karaf > issue, but I this list may contain people that might h

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Nataraj Basappa
Thanks Jean, for a quick response. That solved my initial problem of building the custom distribution. But the built distribution when used in Pax Exam test show missing dependencies. My parent module includes both log4j and slf4j as the dependencies. Does the karaf-assmbley include those or shoul

javax.activation.DataHandler in OSGi

2015-04-21 Thread David Bosschaert
Hi all, Apologies for posting to the Karaf list as this is not really a Karaf issue, but I this list may contain people that might have come across this issue as well. I have some code that runs in OSGi that uses javax.activation.DataHandler. As this is javax... you should be able to provide your

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Jean-Baptiste Onofré
By the way, I will update the documentation to reflect that. Regards JB On 04/21/2015 01:55 PM, Nataraj Basappa wrote: Hi, I'm trying to build a Karaf custom distribution for a evaluation project that I'm working on. I'm trying out with following pom file and and seeing this error. Hope some

Re: Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Jean-Baptiste Onofré
Hi, The standard feature doesn't exist any more in the standard feature descriptor. Instead, you have to provide the features that you want as bootFeatures, for instance: wrap aries-blueprint shell

Karaf Custom Distribution - Could not find matching feature for standard

2015-04-21 Thread Nataraj Basappa
Hi, I'm trying to build a Karaf custom distribution for a evaluation project that I'm working on. I'm trying out with following pom file and and seeing this error. Hope someone can point me in right direction or correct me if I'm missing something. I'm following this links: - http://karaf.apach

Re: Karav 3.0.3 vs 2.4.1 : file install behavior

2015-04-21 Thread Jean-Baptiste Onofré
Oh you meant 3.0.x, I understood 4.0.x. Sorry about that. Let me take a look. Regards JB On 04/21/2015 08:40 AM, lbu wrote: Looking at bundles' headers I see the same version on 3.0.3 and 2.4.1 : - Karaf 2.4.1: Bundle-SymbolicName = org.apache.felix.fileinstall Bundle-Version = 3.4.2 Bundle-