Re: Programmatically restart bundle and/or component?

2024-03-15 Thread João Assunção
and an auxiliary service interface with a method to force a reload of the config without restarting. I guess it depends on how you supply the configuration to the filter. Regards, João Assunção On Fri, Mar 15, 2024 at 4:38 PM Steinar Bang wrote: > I have this bundle: > https://github.com/st

Re: Performance Degrade with apache karaf 4.3.10 and Java 17

2024-03-12 Thread João Assunção
Hi Chandan, I think the JVM will choose the G1 GC by default if the machine has more than one CPU. Not sure it will be beneficial to use it if the JVM is limited to 1 CPU. Have you tried profiling your application using jprofiler or something similar ? VisualVM can also help. Try comparing the

Re: Persist bundle status in karaf

2023-06-12 Thread João Assunção
Hello Jose. Have you checked declarative services ? I suspect your use case is probably more easily achievable using a declarative service component. The component can be configured to start/stop (activate/deactivate) based on the presence of a configuration. Regards, João Assunção Email

Re: Karaf & OSGi bundle imports best practices

2023-02-09 Thread João Assunção
What I do in these cases is to use a wildcard in the import-package statement. For example I have the following in my bnd.bnd in one of the bundles where I use javax.xml. > Import-Package: \ > javax.xml.bind*;version="[2.0,3)", \ > javax.xml.soap;version="[1.4,2)", \

Re: How can one use a third party feature as a startup feature.

2022-11-22 Thread João Assunção
were added to startup.properties. For this to work I previously changed the scope of org.apache.karaf.features/enterprise from runtime to compile. Thank you  Regards João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Tue, Nov 22, 2022

How can one use a third party feature as a startup feature.

2022-11-22 Thread João Assunção
eatures as a startup repository but this didn't do it. Any ideas ? Thank you in advance. Best regards, João Assunção

Re: aries-jax-rs-whiteboard

2022-06-27 Thread João Assunção
ectName, > permissionsSet); > } > catch (InvalidJwtException ex) { > logException("InvalidJwtException", ex); > throw new AuthenticationException(ex.getMessage()); > > } > catch (MalformedClaimException ex) { >

Re: aries-jax-rs-whiteboard

2022-06-23 Thread João Assunção
e; > } > > @Override > public String getAuthenticationScheme() { > > return AUTHENTICATION_SCHEME; > } > > } > > /** > * For test purposes > * > * @param jwtService > * @return &

Re: How do I load configuration within a shell command?

2022-05-13 Thread João Assunção
Why not have the components implement the required operations as a service, or expose those values in some service operation, and then make the shell command use that service ? João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com

Re: Updated mitigation for Log4JShell in Karaf 4.2.x and 4.3.x since setting log4j2.formatMsgNoLookups is a insufficient mitigation measure

2022-01-04 Thread João Assunção
I think the correct versions of pax logging would be 1.11.13. And the "patching" can be made with two updates: bundle:update org.ops4j.pax.logging.pax-logging-api bundle:update org.ops4j.pax.logging.pax-logging-log4j2 Regards, João Email: joao.assun...@exploitsys.com Mobile: +351 916968984

Re:

2021-11-04 Thread João Assunção
. Regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Thu, Nov 4, 2021 at 9:13 AM Serge Démoulin wrote: > Hi > > We are developing a platform based on bundles > Our products are based on this platfor

Re: How to use configuration placeholders in karaf configs

2021-05-20 Thread João Assunção
they don't João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Thu, May 20, 2021 at 4:47 PM João Assunção wrote: > Hello JB > > Yes I'm using Karaf 4.3.0 > > I tried with override="true", specify

Re: How to use configuration placeholders in karaf configs

2021-05-20 Thread João Assunção
ther weird behavior is that this doesn't occur in my machine but occurs in two other machines. All them are Linux machines running openjdk but mine is a bit slower. I will try to use the element instead of João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211

How to use configuration placeholders in karaf configs

2021-05-20 Thread João Assunção
e replaced by the actual value only when the configuration is passed to the service. What am I doing wrong ? Thank you in advance. Best regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com

Re: Karaf 4.2.10 - NullPointerException during xml parsing

2021-03-02 Thread João Assunção
is importing a bunch of packages not required for the code in question. Regards João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Tue, Mar 2, 2021 at 3:33 AM brock samson wrote: > hi, JB. did you get a chance to run my bun

Re: [Karaf] How to prevent configurations created via web console to be persisted as JSON

2020-11-26 Thread João Assunção
Hi JB, No need to apologize! I'm quite grateful for your dedication. I created KARAF-6924 <https://issues.apache.org/jira/browse/KARAF-6924>. If I have time during the weekend I will try to fix it. Best regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984

[Karaf] How to prevent configurations created via web console to be persisted as JSON

2020-11-26 Thread João Assunção
the configuration only uses primitive types. Is it possible to prevent this behavior ? Thank you. Best regards João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com

Re: Enabling multipart support on Aries JAX-RS 1.0.10

2020-11-13 Thread João Assunção
rmwareService { @POST @Path("/upload") @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadFirmware(@Context HttpServletRequest request) { try { doUploadFirmware(request); Hope this helps João Assunção Email: joao.assun...@exploitsys.co

Re: "scr --help" returns nothing even though scr command exist.

2020-07-17 Thread João Assunção
You have two types of commands in Karaf shell: Karaf commands and gogo commands. Karaf commands provide more bells and whistles than gogo commands, --help being one of them. I think scr: are gogo commands. Best regards, João Assunção On Fri, 17 Jul 2020, 16:38 Paul Spencer, wrote: > Ka

Re: Question about @Reference Karaf Command annotation

2020-07-16 Thread João Assunção
public String getColor() { > StringBuffer colors = new StringBuffer(); > colors.append(redColorService.getColor()); > colors.append(", "); > colors.append(greenColorService.getColor()); > retu

Re: Question about @Reference Karaf Command annotation

2020-07-15 Thread João Assunção
Hello all, Have you tried to use an LDAP filter expression? Instead of *color=red* try *(color=red). *(I haven't tried this myself) João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Mon, Jul 13, 2020 at 6:33 PM Paul

Re: Factory configurations bounded to felix.fileinstall bundle deactivate DS/SCR components

2020-07-10 Thread João Assunção
apache.felix/org.apache.felix.fileinstall/3.6.4" > mode="maven" /> > > > > Thank you, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Fri, Jul 10, 2020 at 5:30 AM Jean-Baptiste

Factory configurations bounded to felix.fileinstall bundle deactivate DS/SCR components

2020-07-09 Thread João Assunção
Hello all, I use the config element in feature.xml to create configurations for my DS components. Some of these components are factories. When I install the feature, the configurations are created, the components are activated but then they are deactivated automatically. In the logs, I noticed

Re: Karaf 4.2.7 and PaxLogging/Knopflerfish

2019-10-04 Thread João Assunção
I had the same issue. Adding an exclusion to the framework dependency fixed it for me. org.apache.karaf.features framework kar org.knopflerfish.kf6 log-API João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351

Custom distro: Matched URI can't use version ranges

2019-10-01 Thread João Assunção
to exclude it, right ? Thank you Best regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com

How can I change the server port for a JAX-RS whiteboard application?

2019-08-05 Thread João Assunção
Hello all, I'm running JAX-RS whiteboard in Karaf and I need to change the server port for one of the applications that are running. Karaf is running other applications that should be kept available in the default port. I'm trying to avoid the use of a reverse proxy for this purpose. I created a

Re: New OSGi R7 Logging in Karaf

2019-05-01 Thread João Assunção
ary/framework running under the hood, and probably most of the libraries you are using are also using SLF4J. Best regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Wed, May 1, 2019 at 1:27 PM Jean-Baptiste

Re: gogo console commands

2018-05-11 Thread João Assunção
Hi Scott, Isn't the Converter service a recent introduction to the OSGi framework? I have the idea the Converter was introduced in OSGi core 7 (release a few weeks ago) and Karaf 4.2.0 is still using OSGi Core 5. Maybe someone else can confirm this. Regards, João Assunção Email: joao.assun

Re: Some tipps and tricks for writing pax exam OSGi tests

2018-04-17 Thread João Assunção
Very nice Christian. Thank you for the effort you put into those examples. I already managed to learn something new and add some new things to my tool belt. Keep up with the good work. Regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web

Is it possible to change the URI format of bundles ?

2018-03-28 Thread João Assunção
to an absolute path. Since I don't have the code for the library and the supplier is not willing to make changes, I'm looking up for a workaround for this issue. Is it possible to change the URI format used in Karaf for the bundles, or some classloader trickery do the job? Thanks in advance. Regards, João

Re: Performance degradation due to zombie log:tail commands

2018-02-09 Thread João Assunção
Hello JB, I haven't tried with Karaf 4.1.4. I was planning to wait for 4.1.5 due to KARAF-5384 <https://issues.apache.org/jira/browse/KARAF-5384>. Yes. By client I meant the SSH client. Thank you. Regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone

Performance degradation due to zombie log:tail commands

2018-02-09 Thread João Assunção
is the realm of Karaf I'm not sure where I should open an issue. Thanks, Regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com

Re: "org.apache.felix.eventadmin.IgnoreTopic" ignored for log events

2018-01-16 Thread João Assunção
Hello Roberto, A few months ago I came across the same issue. I think it is a bug in the EventAdmin implementation ( https://issues.apache.org/jira/browse/FELIX-5738). Unfortunately, I didn't find an workwaround. João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone

Re: Karaf 4.1.3 with Aries JPA missing requirement JavaJPA

2017-11-22 Thread João Assunção
, and after some investigation I noticed it was introduced recently in the snapshot version of aries JPA. Try to use the examples from aries.jpa version 2.6.1 João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Tue, Nov 21, 2017 at 4

Re: Why is org.apache.aries.blueprint.core.compatibility installed for some some features

2017-11-08 Thread João Assunção
I will open an issue. I had already implemented the workaround sugested and is working great. My question was more due to curiosity why a feature not using blueprint would trigger the installation of that bundle. Thank you. João Assunção Email: joao.assun...@exploitsys.com Mobile: +351

Re: Why is org.apache.aries.blueprint.core.compatibility installed for some some features

2017-11-08 Thread João Assunção
les: mvn:pt.brisa.common/common-service-core/1.3.0 mvn:pt.brisa.paybox/io-api/0.1.0-SNAPSHOT mvn:pt.brisa.paybox/io-modbus/0.1.0-SNAPSHOT mvn:pt.brisa.paybox/io-commands/0.1.0-SNAPSHOT Feature has no conditionals. In attachment the output of feature:install Thank you. João Assunção Em

Why is org.apache.aries.blueprint.core.compatibility installed for some some features

2017-11-08 Thread João Assunção
of the bundles uses a Contional-Package instruction. What are possible reasons for this blueprint compatibility bundle to get installed ? Thanks. João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com

Duplicate configurations when using features with configurations

2017-08-29 Thread João Assunção
element: deviceId=reader_LEVEL1 portName=COM1 Can anyone point me out what I'm doing wrong, and if possible a way to prevent the creation of the cfg file in ${KARAF_HOME}/etc Thank you. Best regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351

Re: Building karaf offline version with Karaf Cave

2017-08-23 Thread João Assunção
src/assemble/bin.xml João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Wed, Aug 23, 2017 at 11:56 AM, Mariusz Koprowski < mariusz.koprow...@hexagonmining.

Re: Building karaf offline version with Karaf Cave

2017-08-21 Thread João Assunção
standard ones. Best regards, João Assunção Email: joao.assun...@exploitsys.com Mobile: +351 916968984 Phone: +351 211933149 Web: www.exploitsys.com On Mon, Aug 21, 2017 at 11:25 AM, Mariusz Koprowski < mariusz.koprow...@hexagonmining.com> wrote: > Hi All > > I have a such situation.