Re: Javax Activation and Karaf 4.3.6

2022-04-12 Thread Andrei Petru Mura
Maybe this thread is useful: mimecap no longer available after upgrade to bouncycastle 1.69 Andrei Mura Andrei Mura On Tue, Apr 12, 2022 at 11:04 PM Jean-Baptiste Onofré wrote: > Hi Jakub > > Yeah, it rings a bell to me. I think it has been discussed before on > the mailing list. Let m

Re: mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-10 Thread Andrei Petru Mura
For now, this seems to be a good solution. Andrei On Thu, Feb 10, 2022 at 4:33 PM Jean-Baptiste Onofré wrote: > Catcha. We can then provide two features: Jakarta and SMX based. > > Le jeu. 10 févr. 2022 à 15:08, Andrei Petru Mura a > écrit : > >> Hi Jean-Baptiste, >

Re: mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-10 Thread Andrei Petru Mura
ecs/src/main/feature/feature.xml#L42 > > We can update the runtime by avoiding the import from the JRE, and > instead use an activation feature. > > Regards > JB > > On Thu, Feb 10, 2022 at 2:49 PM Andrei Petru Mura > wrote: > > > > Hi Jean-Baptiste, > &

Re: mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-10 Thread Andrei Petru Mura
. > It should work in almost all cases. > > Regards > JB > > On Thu, Feb 10, 2022 at 2:35 PM Andrei Petru Mura > wrote: > > > > After some investigation, I managed to make this work. I'll mentioned > below a few points which I had to perform. > > Firs

Re: mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-10 Thread Andrei Petru Mura
stallations. I observed that the installation order has an impact on this too. Afterwards, everything seems to work fine. All the best, Andrei Mura On Thu, Feb 3, 2022 at 4:29 PM Andrei Petru Mura wrote: > Ok. I installed the one provided by eu.agno3.jcifs, but didn't fix the > issu

Re: mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-03 Thread Andrei Petru Mura
Ok. I installed the one provided by eu.agno3.jcifs, but didn't fix the issue. Andrei Mura On Thu, Feb 3, 2022 at 4:26 PM Andrei Petru Mura wrote: > Hmmm... Can you give me the group ID too please? Thanks > > Andrei > > On Thu, Feb 3, 2022 at 4:12 PM Jean-Baptiste Onof

Re: mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-03 Thread Andrei Petru Mura
to your issue (the update), but possible it's > the same issue (due to bc breaking change). > > Regards > JB > > On 03/02/2022 14:30, Andrei Petru Mura wrote: > > Hmm... Which ones? I upgraded many others... Including java mail. I use > > jakarta.mail 1.6.7 now. >

Re: mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-03 Thread Andrei Petru Mura
ould be updated. > > Regards > JB > > On 03/02/2022 14:09, Andrei Petru Mura wrote: > > Hi all, > > > > I upgraded bouncycastle to 1.69 in karaf. When trying to run this code: > > > > MimeBodyPart textPart = new MimeBodyPart(); > > textPart.setContent(new

Re: mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-03 Thread Andrei Petru Mura
N.B. I'm running this on Karaf 4.3.3 On Thu, Feb 3, 2022 at 3:09 PM Andrei Petru Mura wrote: > Hi all, > > I upgraded bouncycastle to 1.69 in karaf. When trying to run this code: > > MimeBodyPart textPart = new MimeBodyPart(); > textPart.setContent(new St

mimecap no longer available after upgrade to bouncycastle 1.69

2022-02-03 Thread Andrei Petru Mura
Hi all, I upgraded bouncycastle to 1.69 in karaf. When trying to run this code: MimeBodyPart textPart = new MimeBodyPart(); textPart.setContent(new String(body), "text/plain"); textPart.setHeader("Content-Type", messageContentType); textPart.setHeader("Content-Transfer-Encoding", "binary"); textP

Using Apache Karaf with Docker

2022-01-13 Thread Andrei Petru Mura
Hi everyone, I have a dilemma which I'll present to you here. Any advice/indications? Case 1. I have a production system in which I have multiple virtual machines. In every such virtual machine I run an Apache Karaf instance. In all this Apache Karaf instances (one per virtual machine) I run mult

Allow JMX connection from other host

2021-11-05 Thread Andrei Petru Mura
Hi, How can I configure JMX in karaf to allow connections from other hosts? Probably ${karaf.home}/etc/org.apache.karaf.management.cfg file is to be blamed. Thanks, Andrei

Re: Charset issue

2021-10-28 Thread Andrei Petru Mura
e 28 oct. 2021 à 08:41, Andrei Petru Mura a > écrit : > > > >  > > I have AlmaLinux (CentOS follower) with jre 1.8.0. And Apache Karaf > 4.0.4. installed in this environment. Two almost identical servers. > > > > If I run this Java code from terminal: > >

Charset issue

2021-10-27 Thread Andrei Petru Mura
I have AlmaLinux (CentOS follower) with jre 1.8.0. And Apache Karaf 4.0.4. installed in this environment. Two almost identical servers. If I run this Java code from terminal: System.out.println(Charset.defaultCharset()); I get US-ASCII. If I run the same command from a karaf bundle, I get this o

Re: Multiple deploy directories in Karaf

2021-10-19 Thread Andrei Petru Mura
> you are using multiple deplorers. > Each of the deplorers has the power to stop and restart any other bundle > that has already been started in the system. > Perhaps you should consider using a single deploy folder? > > Cheers > Paul > > > > From:"And

Re: Multiple deploy directories in Karaf

2021-10-18 Thread Andrei Petru Mura
felix.fileinstall.log.level = 3 Do you think there's any problem with my configuration? Thanks, Andrei On Tue, Oct 19, 2021 at 9:39 AM Andrei Petru Mura wrote: > I tried this. And it worked, only that some issues arise related to > dependencies. Sometimes, the dependencies aren't

Re: Multiple deploy directories in Karaf

2021-10-18 Thread Andrei Petru Mura
is possible via the configuration in etc/config.properties. > > It's not possible via a factory. > > In your case, you should create etc/org.apache.felix.fileinstall-foo.cfg > with a single directory. > > Regards > JB > > On 14/10/2021 10:12, Andrei Petru Mura wrote:

Multiple deploy directories in Karaf

2021-10-14 Thread Andrei Petru Mura
>From Apache Felix documentation page ( https://felix.apache.org/documentation/subprojects/apache-felix-file-install.html), I get this: felix.fileinstall.dir ./load The name of the directory to watch. Several directories can be specified by using a comma separated list. If I try to do this in Ap

Re: Adding/removing log listener programatically

2021-10-05 Thread Andrei Petru Mura
s://github.com/apache/karaf/tree/main/examples/karaf-mbean-example > > Regards > JB > > On 28/09/2021 11:12, Andrei Petru Mura wrote: > > Ok. I got that a health service would be a good option. But would this > > service have to be deployed as a bundle or can I instal

Re: Adding/removing log listener programatically

2021-09-28 Thread Andrei Petru Mura
> > Regards > JB > > On 28/09/2021 10:05, Andrei Petru Mura wrote: > > Hmmm... > > I intend to do this for testing purposes only. This means that I want to > > check that new upgrades, features, updates, etc are fully working for > > the current application

Re: Listening for bundle event

2021-09-28 Thread Andrei Petru Mura
stener and use > eventadmin to broadcast the events. > > Regards > JB > > On 23/09/2021 15:15, Andrei Petru Mura wrote: > > I want to remotely manage my karaf instance, programatically. I think a > > good option for this is the JMX service which karaf already provides. Is &

Re: Adding/removing log listener programatically

2021-09-28 Thread Andrei Petru Mura
xAppender as a service. > > NB: according to the messages you sent, I afraid you are creating a "gaz > plant". I would recommend to take time to evaluate what you need and > your design. If you need, I can help you on this. > > Regards > JB > > On 28/09/2021 0

Adding/removing log listener programatically

2021-09-28 Thread Andrei Petru Mura
In my scenario, I try to deploy some bundles in my Karaf server, check the status that everything is working, make some work with the successfully deployed bundles and undeploy them. In order to get the status of work done, I would need a log listener for specific bundles. I see the ideal case to b

Listening for bundle event

2021-09-23 Thread Andrei Petru Mura
I want to remotely manage my karaf instance, programatically. I think a good option for this is the JMX service which karaf already provides. Is there a way to simply add a listener for a bundle which I know follows to be installed and then to wait for notifications on this bundle state changes? Or

Referencing service via component-name

2021-09-21 Thread Andrei Petru Mura
I have my own bundle deployed in karaf 4.3.2. In my blueprint.xml, I have declared a few services, like this: If I list the services in karaf, I can see that this services are available. In another bundle, I want to use this services via reference. Like this: But when I deploy my second b

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
gt; 3. you use "wrap" protocol (wrap:mvn:groupId/artifactId) that will > create a bundle on the fly > > Regards > JB > > On 15/09/2021 13:45, Andrei Petru Mura wrote: > > What do you mean by wrap? > > > > On Wed, Sep 15, 2021 at 2:43 PM Jean-Baptiste Onofré &

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
ional as > well). > > I will release a new clean xmlbeans 5.0.1 bundle version (5.0.1_2). > > Regards > JB > > On 15/09/2021 12:50, Andrei Petru Mura wrote: > > Hi all, > > > > I'm trying to upgrade to karaf 4.3.2. In the proc

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
What do you mean by wrap? On Wed, Sep 15, 2021 at 2:43 PM Jean-Baptiste Onofré wrote: > You still have lib/jdk9plus for JDK9+ lib. > > However, in your case, I think it's better to use wrap. > > Regards > JB > > On 15/09/2021 13:42, Andrei Petru Mura wrote: >

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
Rectify a bit: it seems that $KARAF_HOME/lib/ext is no longer considered in 4.3.2 for jre greater than 1.8. Andrei On Wed, Sep 15, 2021 at 2:40 PM Andrei Petru Mura wrote: > OpenJDK, I used OpenJDK 16. If I switch to OpenJDK 1.8, I manage to fix > the issue by adding the desired packa

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
should I put that Jar file? it seems that $KARAF_HOME/lib/ext is no longer considered in 4.3.2. Thanks, Andrei On Wed, Sep 15, 2021 at 2:34 PM JB Onofré wrote: > Hi > > What’s your JDK version and provider ? > > Regards > JB > > Le 15 sept. 2021 à 12:51, Andrei Petru Mura a

com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
Hi all, I'm trying to upgrade to karaf 4.3.2. In the process, I try to install xmlbeans with: bundle:install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlbeans/5.0.1_1 and it gives me this error: Error starting bundle 241: Unable to resolve org.apache.servicemix.bundles.

Re: Starting a bundle using aries blueprint - spring - camel. Getting Blueprint bundle is waiting for namespace handlers [http://www.osgi.org/xmlns/blueprint/v1.0.0]

2021-09-14 Thread Andrei Petru Mura
to change all my configuration to OSGI beans? Andrei On Tue, Sep 14, 2021 at 12:11 PM Andrei Petru Mura wrote: > Hi Jean, > > I need to publish my spring beans as OSGI services, so that I would be > able to use them from other bundles which are also spring based. Why I need > spr

Re: Starting a bundle using aries blueprint - spring - camel. Getting Blueprint bundle is waiting for namespace handlers [http://www.osgi.org/xmlns/blueprint/v1.0.0]

2021-09-14 Thread Andrei Petru Mura
ring-dm to blueprint is pretty straight forward > (change namespace and ). > > Now, about the blueprint-spring-extender, it allows you to use some > spring elements in blueprint XML (like , etc). > > Regards > JB > > On 13/09/2021 11:40, Andrei Petru Mura wrote: > > I

Re: Starting a bundle using aries blueprint - spring - camel. Getting Blueprint bundle is waiting for namespace handlers [http://www.osgi.org/xmlns/blueprint/v1.0.0]

2021-09-13 Thread Andrei Petru Mura
ntext in your camel bundle, it's the one involved. > > > > Why not using camel-blueprint namespace ? > > > > http://camel.apache.org/schema/blueprint"/> > > > > and using OSGI-INF/blueprint for your loading ? > > > > Regards > > JB &g

Re: Starting a bundle using aries blueprint - spring - camel. Getting Blueprint bundle is waiting for namespace handlers [http://www.osgi.org/xmlns/blueprint/v1.0.0]

2021-09-13 Thread Andrei Petru Mura
in account that aries-blueprint-spring is the one which starts the loading, I'm a bit confused. Any guidance would be appreciated. Thanks. Andrei On Mon, Sep 13, 2021 at 11:50 AM Andrei Petru Mura wrote: > Hi Jean, > > Yes, I do. > > karaf@root()> feature:list

Re: Starting a bundle using aries blueprint - spring - camel. Getting Blueprint bundle is waiting for namespace handlers [http://www.osgi.org/xmlns/blueprint/v1.0.0]

2021-09-13 Thread Andrei Petru Mura
> JB > > On 13/09/2021 10:44, Andrei Petru Mura wrote: > > Hi all, > > > > I'm trying to get ready a bundle in Karaf 4.3.2. In karaf I have > > installed camel, spring and aries by default (along it's > > aries-blueprint-spring feature). > > My bluep

Starting a bundle using aries blueprint - spring - camel. Getting Blueprint bundle is waiting for namespace handlers [http://www.osgi.org/xmlns/blueprint/v1.0.0]

2021-09-13 Thread Andrei Petru Mura
Hi all, I'm trying to get ready a bundle in Karaf 4.3.2. In karaf I have installed camel, spring and aries by default (along it's aries-blueprint-spring feature). My blueprint XML file looks like below (I reduced it to minimum). http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http

Re: Getting spring status of Active bundle via JMX from Karaf 4.0.4

2021-09-10 Thread Andrei Petru Mura
> Hi > > Karaf 4.0 is super old. Anyway we provided state for blueprint and SCR but > not spring-dm. And spring-dm is now deprecated (replaced by blueprint). > > Any plan for you to move to blueprint ? > > Regards > JB > > Le 10 sept. 2021 à 12:13, Andrei Petru Mura a

Re: Getting spring status of Active bundle via JMX from Karaf 4.0.4

2021-09-10 Thread Andrei Petru Mura
Hi there, Did my message reach out to you? Thanks, Andrei On Thu, Sep 9, 2021 at 4:49 PM Andrei Petru Mura wrote: > Hello, > > In Karaf 4.0.4, I have my own bundles deployed using spring-dm. I would be > interested if there is a possibility to get the status of a bundle via JM

Getting spring status of Active bundle via JMX from Karaf 4.0.4

2021-09-09 Thread Andrei Petru Mura
Hello, In Karaf 4.0.4, I have my own bundles deployed using spring-dm. I would be interested if there is a possibility to get the status of a bundle via JMX as it is listed in karaf console. In karaf, I get this: karaf@root> list 285 | Active | 80 | 1.0.0.SNAPSHOT | bundle-name >From my Java

Karaf doesn't use proper Time Zone

2016-07-25 Thread Andrei Petru Mura
Hi everybody, I'm using Apache Karaf 4.0.4. I recently upgraded to it. All works perfect, except the fact that time has disabled the daylight savings. So, for example if I use CEST time, it actually uses CET time, if I use EEST time, it actually uses EET time. Can anybody give me any hints about