Re: Karaf 2.2.0 Startup with no internet Access

2011-03-30 Thread Hervé BARRAULT
Ok i will do it. 2011/3/30 Jean-Baptiste Onofré j...@nanthrax.net Hi Hervé, it's a bug in 2.2.0. The features should be in the system repo. Could you raise a Jira ? Thanks Regards JB On 03/30/2011 04:43 PM, Hervé BARRAULT wrote: HI, i have download the karaf 2.2.0 and i try

Re: Karaf 2.2.0 Startup with no internet Access

2011-03-31 Thread Hervé BARRAULT
Hi, for my startup case, putting the 2 features files in the right directories solved the problem. system\org\apache\karaf\assemblies\features\enterprise\2.2.0\enterprise-2.2.0-features.xml system\org\apache\karaf\assemblies\features\standard\2.2.0\standard-2.2.0-features.xml Regards Hervé

OSGI Fragment and Logging

2011-11-16 Thread Hervé BARRAULT
Hi, I am using using ServiceMix 4.3.0-fuse-01-00 so Karaf http://fusesource.com/wiki/display/ProdInfo/Fuse+Karaf+v2.0.0+Release+Notes 2.0.0-fuse-00-00 I have seen the following documentation : http://karaf.apache.org/manual/2.2.2/users-guide/logging-system.html Especially, the Using your own

Re: OSGI Fragment and Logging

2011-11-16 Thread Hervé BARRAULT
...@googlemail.com wrote: Hi Hervé thanx for the hint. Did you also take a look a the configuring part? Cause to get things going in Karaf/ServiceMix you need to make sure your fragment is available before the host bundle enters the resolved state. regards, Achim 2011/11/16 Hervé BARRAULT herve.barra

Re: OSGI Fragment and Logging

2011-11-16 Thread Hervé BARRAULT
to the pax-logging-service bundle which contain that class, so it will be directly available. On Wed, Nov 16, 2011 at 15:27, Hervé BARRAULT herve.barra...@gmail.comwrote: Hi Achim My problem is the fragment is not able to be resolved as the package org.apache.log4j.helpers can't be imported. I

Re: OSGI Fragment and Logging

2011-11-16 Thread Hervé BARRAULT
Effectively, by forcing ignore packages, it starts working. Thanks for the advice. On 11/16/11, Guillaume Nodet gno...@gmail.com wrote: Try adding Import-Package!*/Import-Package in your pom On Wed, Nov 16, 2011 at 15:41, Hervé BARRAULT herve.barra...@gmail.comwrote: Hi Guillaume, I am

Re: Starting/Stopping Programmatically Bundles

2012-01-16 Thread Hervé BARRAULT
bundles using bundleContext.getBundles and find the ones you want to start/stop there? Kind regards, Andreas On Mon, Jan 16, 2012 at 18:46, Hervé BARRAULT herve.barra...@gmail.comwrote: Hi, thanks for quick answers. By registering using activator it is working well for notification

Sop Karaf on bundle Failure

2012-01-24 Thread Hervé BARRAULT
Hi, is there a way in Karaf to define a bundle as critical ?. If this bundle fails, the whole container shall stop/restart. I can use a listener as in a previous question f(Starting/Stopping Programmatically Bundles) to check the state of the bundle. The idea is : I have an embedded broker and

Re: Sop Karaf on bundle Failure

2012-01-24 Thread Hervé BARRAULT
...@gmail.com wrote: If you retrieve the JMS connection factory using an OSGi service then your bundle will easily know that the service is not available anymore, so the bundle should put itself in a state where it will wait until the service come up again. On Tue, Jan 24, 2012 at 13:36, Hervé BARRAULT

Re: Sop Karaf on bundle Failure

2012-01-24 Thread Hervé BARRAULT
).start() But there's nothing out of the box in karat. Note that for AMQ, you also have some automatic reconnection features: http://activemq.apache.org/how-can-i-support-auto-reconnection.html On Tue, Jan 24, 2012 at 15:30, Hervé BARRAULT herve.barra...@gmail.com wrote: Hi, thanks

Re: OSGi and ClassNotFoundException

2012-04-24 Thread Hervé BARRAULT
that is configured with a list of the classes from A. C can initialize this context so B does not have to load these classes at all. Christian Am 24.04.2012 15:53, schrieb Hervé BARRAULT: Hi, I have a case where i can't see how to cleanly list the imported packages without using DynamicImport

Re: OSGi and ClassNotFoundException

2012-04-24 Thread Hervé BARRAULT
, 2012 at 5:45 PM, Hervé BARRAULT herve.barra...@gmail.comwrote: Hi thanks for the explanation about the Class.forname usage (It is clear when you don't forget that you can manipulate at the same classes in different versions). I think, it could be a good idea that the OSGi container provides

Re: OSGi and ClassNotFoundException

2012-04-25 Thread Hervé BARRAULT
not change the jdk code I think such a workaround is acceptable. Btw. It is a good practice to save the old ThreadContextClassLoader and restore it after the call. Christian Am 24.04.2012 22:08, schrieb Hervé BARRAULT: Hi, i did a really ugly quick fix using ThreadContextClassLoader

Exported Packages and bundles

2012-05-31 Thread Hervé BARRAULT
Hi, I have sometimes some class loading issues (ClassCastException for the same class). I suppose that this class can be exposed (in different version) by different bundles. Is there a command in karaf to know which bundle expose this package (and in which version) ? In my case it is for the

Re: Exported Packages and bundles

2012-06-01 Thread Hervé BARRAULT
://gertvanthienen.blogspot.com/ On Thu, May 31, 2012 at 8:29 PM, Hervé BARRAULT herve.barra...@gmail.com wrote: Hi, I have sometimes some class loading issues (ClassCastException for the same class). I suppose that this class can be exposed (in different version) by different bundles

Re: Why is JDK required for running Karaf?

2012-07-31 Thread Hervé BARRAULT
Hi, the java environment can be defined as server or client ( http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types ). Using a JRE under linux provide both server and client option. Using a JRE under windows provides only a client. (the server part is only provided with