Re: Vertx SPI

2024-03-26 Thread Achim Nierbeck
Hi Michael, it's been quite a while since I've been playing around with karaf and vert.x from principle it should still work though. Maybe you find some help here: https://github.com/ANierbeck/Karaf-Vertx/tree/master I also used the spi-fly bundle to have some SPI stuff working.

Re: java.lang.NoClassDefFoundError: javax/net/ssl/TrustManager

2024-03-18 Thread Achim Nierbeck
Hi Michael, it's quite old (tbh. 5 years ) but maybe you can find something helpful https://github.com/ANierbeck/Karaf-Vertx/blob/master/Vertx-Http/src/main/java/de/nierbeck/example/vertx/http/VertxHttpServer.java I was experimenting with vert.x and Karaf at the time. as it's 5 years ago, a lot

Re: JDK 13/14 support for Karaf 4.2.10 and 4.3.0

2020-06-05 Thread Achim Nierbeck
Hi JB, thanks for the pointers. Would it be reasonable to place that information also on the download page? regards, Achim Am Fr., 5. Juni 2020 um 07:03 Uhr schrieb Jean-Baptiste Onofre < j...@nanthrax.net>: > Hi guys, > > I would like to send a quick note/update about the Karaf JDK support.

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-13 Thread Achim Nierbeck
Yes, the configuration is case sensitive. regarding sample for Karaf, I can do that, but there had been a reason for consuming 10 Pages in the "Apache Karaf Cookbook" :) regards, Achim Am Di., 12. Mai 2020 um 23:10 Uhr schrieb Gerald Kallas < catsh...@mailbox.org>: > Hi Alex, > > we did make

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Achim Nierbeck
AM, Alex Soto wrote: > > Thanks Achin and JB, > > I looked at that example, but that is is WAR, and I am looking for WAB > example. Still, in the ‘web.xml’ file there is no reference to JAAS > realm. Where do you indicate the realm name? (I have my own realm separate > fr

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-11 Thread Achim Nierbeck
Maybe worth to add this in the Karaf wab example as well. > > I will. > > Regards > JB > > Le 10 mai 2020 à 13:45, Achim Nierbeck a écrit : > > Hi, > > there is a sample app for Pax-Web, which is also used in the test-suite: > > https://github.com/ops4j/org.ops4j.pax.web

Re: Basic authentication of WAB using Jaas in Karaf

2020-05-10 Thread Achim Nierbeck
Hi, there is a sample app for Pax-Web, which is also used in the test-suite: https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples/war-authentication And actually you just need to reference the jaas of the surrounding Karaf instance in your web.xml file. regards, Achim Am Fr., 8. Mai

Re: [UPDATE] Karaf Virtual Meetup preparation

2020-05-08 Thread Achim Nierbeck
Hey, an update regarding the recording. We needed to make some "Post"-Production as the video was somehow stored in Portrait instead of Landscape. Therefore it did take a bit longer. Please find it here: https://www.youtube.com/watch?v=PYXT5y8gwAg Best regards, Achim Am Fr., 1. Mai 2020 um

Re: Handling legacy libraries in OSGi/Karaf - Karat Meet-up chat questions

2020-05-01 Thread Achim Nierbeck
o share proposals and ideas :) > Every questions and feedbacks are welcome, this how we can improve Apache > Karaf and make it great for the users! > > PS: kudo to JB and Achim for the organization, it was perfect! > > regards, > > Françoisfpa...@apache.org > > Le 30/

Re: Handling legacy libraries in OSGi/Karaf - Karat Meet-up chat questions

2020-04-30 Thread Achim Nierbeck
Hey People, don't be intimidated by other on this list :) If you have questions or ideas on answering others, don't hesitate to do so. TBH, when I was a Karaf noob I just hang out here with a bunch of ideas what needed be improved regarding the web-container. So someone told me to just do it.

Re: [ANN] Apache Karaf Meetup, schedule

2020-04-30 Thread Achim Nierbeck
Update: I was able to configure the meetin in a way, that a password isn't needed and still we're able to meet in a good manner :) best regards, Achim Am Mi., 29. Apr. 2020 um 18:07 Uhr schrieb Achim Nierbeck < bcanh...@googlemail.com>: > Hi, > > yes please register, otherwise y

Re: [ANN] Apache Karaf Meetup, schedule

2020-04-29 Thread Achim Nierbeck
>>> >>>> Hi every Karaf enthusiasts, >>>> >>>> We are please to announce the schedule for the first Apache Karaf >>>> "Virtual" Meetup planned tomorrow, Thursday May 30th. >>>> >>>> Here’s the schedule: >>&

Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Achim Nierbeck
Oh we have plenty of beer here. Mostly the world famous Tannenzäpfle from the Schwarzwald ;) But also non-alcoholic beverages I'm really looking forward to it best regards, Achim Am Do., 20. Feb. 2020 um 21:03 Uhr schrieb Jean-Baptiste Onofré < j...@nanthrax.net>: > Awesome ! Looking forward to

Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Achim Nierbeck
Hi, yeah sorry I might have communicated this wrong. It's open to everybody to participate right away at 4 pm. My intention is to have an even more public advertising for the later part, to reach even more people via our regular meetup channels. That's been the sole purpose of the "later" part.

Re: Karaf community Meetup?

2020-02-19 Thread Achim Nierbeck
NP ... mgmt summary. We moved to the 30th of April and will start at 4 p.m. CET ;) If you want to provide a talk, feel free to contact us here or via DM. regards, Achim Am Mi., 19. Feb. 2020 um 14:49 Uhr schrieb cooshal : > Hi: > > My bad. Thanks for the pointer. > > Regards, > Kushal. > > > >

Apache Karaf community Meetup in April and CFP

2020-02-19 Thread Achim Nierbeck
Hi all, JB and I had a call yesterday trying to organize our first Apache Karaf community event. As it's already end of February, the date for March has been a bit to close for comfort. Therefore we decided to move the event to the 30th of April. My employer the codecentric AG will host the event

Re: Http Whiteboard - Pax-Web multiple instances

2020-02-04 Thread Achim Nierbeck
Hi Markus, if you find bugs, please fix them ;) Regarding the different samples. That's been the second blog, I wrote two at the time. The given sample is for the WhiteBoard approach, but you can also have the Web-Container approach. See the first Blog for details, that's where I outsourced my

Re: Http Whiteboard - Pax-Web multiple instances

2020-02-03 Thread Achim Nierbeck
Hi, This is the source: https://github.com/ops4j/org.ops4j.pax.web/blob/master/samples/whiteboard-extended/src/main/java/org/ops4j/pax/web/extender/samples/whiteboard/internal/Activator.java and here is the very very old blog about it, I wrote after implementing it :-)

Re: Http Whiteboard - Pax-Web multiple instances

2020-02-03 Thread Achim Nierbeck
Hi, the functionality should be working, as the samples provided by the pax-web project are also used for the integration tests, which do work ... at least the last time I tested :D for details about how it works, please take a look at the pax-web project :) regards, Achim Am Fr., 31. Jan.

Re: Karaf community Meetup in Karlsruhe (Germany) - "call for Talks"

2020-01-14 Thread Achim Nierbeck
ter-part of the whole event imho. >> Toni >> >> >> >> *Toni Menzel | rebaze.com <https://www.rebaze.com> | growing developer >> culture* >> >> >> On Tue, Jan 14, 2020 at 9:35 AM Achim Nierbeck >> wrote: >> >>> Hi JB, >>

Re: Karaf community Meetup in Karlsruhe (Germany) - "call for Talks"

2020-01-14 Thread Achim Nierbeck
Here a quick sheet, for an idea on how we might organize the talks :) https://docs.google.com/spreadsheets/d/1XYhPA-xeIleiY_6Ei3Krz_hYkfJAU4DWoVQBVI6pTus/edit?usp=sharing Ideas welcome! regards, Achim Am Di., 14. Jan. 2020 um 09:34 Uhr schrieb Achim Nierbeck < bcanh...@googlemail.com>:

Re: Karaf community Meetup in Karlsruhe (Germany) - "call for Talks"

2020-01-14 Thread Achim Nierbeck
as microservices runtime > > I would like also to propose a "discussion panel". I won't be a talk, > more 30mn open discussion about: Karaf, OSGi, pros and cons, what should > we do better ? > > Thoughts ? > > Regards > JB > > On 14/01/2020 09:

Karaf community Meetup in Karlsruhe (Germany) - "call for Talks"

2020-01-14 Thread Achim Nierbeck
Hi, looks like we have a date for a community meetup in Karlsruhe Germany. It's going to be the 19th of March. Now I would like to call for talks, so we can decide how "big" we're going to have it ;) So please be welcome to start proposing your talks ... best regards, Achim -- Apache Member

Re: Karaf community Meetup?

2020-01-14 Thread Achim Nierbeck
Hi Achim, > > > > thanks for leading this up ! > > > > As said, I will be there wherever it will be, whenever it will be ;) > > > > Regards > > JB > > > > On 10/01/2020 10:06, Achim Nierbeck wrote: > >> Hi, > >> > >> on

Karaf community Meetup?

2020-01-10 Thread Achim Nierbeck
Hi, on Slack we had a conversation last year, about the general interest of having a get-together regarding this karaf community. As quite some people are kind of close (or at least close enough) to travel with a train to Karlsruhe, I made the offering of hosting such an event in our company

Re: Custom Karaf + Pax-Exam + Java11

2019-12-22 Thread Achim Nierbeck
ation. > > > We have done it similar for Sling: > > > https://github.com/apache/sling-org-apache-sling-karaf-integration-tests/blob/ > > master/src/main/java/org/apache/sling/karaf/testing/KarafTestSupport.java#L151 > > And it reminds me to open a PR because the duplicati

Re: Custom Karaf + Pax-Exam + Java11

2019-12-22 Thread Achim Nierbeck
estsSupport, you have to mimic the configuration. > > Regards > JB > > On 21/12/2019 17:39, Achim Nierbeck wrote: > > Hi, > > > > it's one of those days where it's better to just stop for now. > > Though I've spent quite some time on figuring out, without r

Custom Karaf + Pax-Exam + Java11

2019-12-21 Thread Achim Nierbeck
Hi, it's one of those days where it's better to just stop for now. Though I've spent quite some time on figuring out, without real success though. Maybe one on the list does have a bright moment to point me into the right direction :) I was working on upgrading the latest dependencies for my

Re: Karaf, Pax Web, Jetty: "some" client authentication

2019-05-21 Thread Achim Nierbeck
Right now this only works for webbundles as their web-context is bound to a connector. Haven't tried it, but it could be bend to work with whiteboard servlets. regards, Achim Am Do., 16. Mai 2019 um 21:23 Uhr schrieb Markus Rathgeb < maggu2...@gmail.com>: > I assume I need to use a "Web

Re: Enabling HTTPS

2018-10-25 Thread Achim Nierbeck
Hi, I'm sure you'll find some of your questions answered here: http://ops4j.github.io/pax/web/SNAPSHOT/User-Guide.html#ssl-configuration regards, Achim Am Do., 25. Okt. 2018 um 17:59 Uhr schrieb Leschke, Scott < slesc...@medline.com>: > I’m attempting to get https working by following the

Re: Running Camel in a Karaf OSGi container

2018-10-18 Thread Achim Nierbeck
Hi, afaik you can also use declarative Services as starting point for your Camel routes/rotue-builders http://camel.apache.org/camel-and-scr.html Therefore I'd think blueprint isn't mandatory. Also it's not mandatory to start with a blueprint dsl, use java instead just let your route builder be

Re: Karaf pax exam test works locally but fails on travis-ci

2018-08-27 Thread Achim Nierbeck
Try to use a different tool, I've experienced that travis-ci also does have a limitation on the time of a project build. Therefore it might very well be, that your project just takes to long. regards, Achim Am So., 26. Aug. 2018 um 22:45 Uhr schrieb Steinar Bang : > I've merged in a large

Re: Do karaf support yaml file as configuration

2018-08-08 Thread Achim Nierbeck
AFAIK this works. As you give a maven coordinate with is "serialized" to the given filename. regards, Achim Am Mi., 8. Aug. 2018 um 11:51 Uhr schrieb imranrazakhan < imranrazak...@gmail.com>: > Suppose we have feature file like, > > > > http://karaf.apache.org/xmlns/features/v1.0.0;>\

Re: How to analyze karaf bundle level memory and cpu usage

2018-06-23 Thread Achim Nierbeck
If you can't get the numbers via JMX, I'm pretty sure there will be no further possible way. Afaik it's really hard to determine the amount of memory spent on a certain bundle. regards, Achim 2018-06-22 13:49 GMT+02:00 Jean-Baptiste Onofré : > I don't use hawtio. > > I'm using directly Karaf ;)

Re: gogo console commands

2018-05-11 Thread Achim Nierbeck
I thought 4.2 is OSGi Core 6, but besides that you're right, it's certainly not yet OSGi 7 compatible. Also the GoGo shell isn't upgraded yet. regards, Achim 2018-05-11 11:02 GMT+02:00 João Assunção : > Hi Scott, > > Isn't the Converter service a recent

Re: pax-support-jsf in Karaf

2018-02-26 Thread Achim Nierbeck
hink if I look at the > feature info, it is listed as a requirement, which would make sense based > on the error.) > > I'll see if maybe an older pax version is getting referenced somehow? > > Ryan > > > On Mon, Feb 26, 2018, 10:36 AM Achim Nierbeck <bcanh...@googlemail.c

Re: pax-support-jsf in Karaf

2018-02-26 Thread Achim Nierbeck
Hi, you need to differentiate, if you want to do JSF with jetty there is no extra module needed, if you want to use undertow instead of Jetty, you'll need that extra module. regards, Achim 2018-02-26 16:08 GMT+01:00 Jean-Baptiste Onofré : > We did a lot of improvements for

Re: [Karaf] Missing requirement

2017-12-15 Thread Achim Nierbeck
Hi, you should try to depend on already existing features. For one, there are spring features available from Karaf itself, that'll reduce already. Same is for all the logging part. Make sure to define your logging dependencies in your maven pom as provided CXF etc. are also features which

Re: Update on the Karaf website look'n feel

2017-12-04 Thread Achim Nierbeck
Hi JB & François, indeed it looks much more eye friendly. Great work. Achim 2017-12-04 18:29 GMT+01:00 Jean-Baptiste Onofré : > Hi guys, > > A new Karaf enthusiast and close friend, François (Papon) proposed a > website pull request providing a nice update for the website.

Re: jetty/karaf bind issue

2017-11-26 Thread Achim Nierbeck
Hard to tell from here, though since it's JettyServerImpl which fails to bind to the configured Port, something else blocks it. So this isn't a common problem seen unless there is already another process blocking it. regards, Achim 2017-11-26 17:24 GMT+01:00 smunro

Re: jetty/karaf bind issue

2017-11-26 Thread Achim Nierbeck
Hi Stephen, might it be that you have two instances of Karaf running? One as service and the other one trying to start as standalone? Regards, Achim 2017-11-26 17:12 GMT+01:00 smunro : > Hello Achim, > > I know it's obvious it's being blocked, the problem is that

Re: jetty/karaf bind issue

2017-11-26 Thread Achim Nierbeck
Hi, obviously something else is already running on the configured port for the webcontainer. That is by default 8181. So you need to make sure you stop the other process blocking that port. regards, Achim 2017-11-26 15:01 GMT+01:00 smunro : > Hello, > > I'm

Re: web container not working on installing web

2017-11-19 Thread Achim Nierbeck
Hi, as long as you don't have any application using the war feature you won't be able to access the server. It waits till the first WAB or other web related bundle is deployed and will serve it's content when available. regards, Achim 2017-11-17 16:34 GMT+01:00 Saravanakumar Murugesan

Re: Strange resolution problem

2017-10-09 Thread Achim Nierbeck
Hi, looks like you do have an import for it in your bundle. So somewhere in your bytecode there seems to be an import for it. Maybe you've used a newer version while building, compared to what you've got when running. regards, Achim 2017-10-09 8:42 GMT+02:00 David Leangen :

Re: karaf 3.0.1 just prints NullPointerException trying to append a property

2017-09-28 Thread Achim Nierbeck
Hi, afair 3.0.x was never "designed" to work with Java8. The reason might have been the ASM stuff, so I wouldn't rely on that. If you want to use Karaf 3.0.x you'll need to stick to Java 7 I fear. regards, Achim 2017-09-28 7:22 GMT+02:00 Jean-Baptiste Onofré : > Hi David,

Re: Executing a Karaf command in Pax Exam Test

2017-08-13 Thread Achim Nierbeck
Hi, take a look at these lines, they'll give you something similar I'm sure: https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-ITest/src/test/java/de/nierbeck/cassandra/itest/TestBase.java#L150-L180 btw. if in doubt, there are a couple of tests around that class using it.

Re: fragment not bound to its host (karaf v.4.1.2)

2017-08-09 Thread Achim Nierbeck
Hmm .. usually you have to refresh the host bundle for that. Did we add such a functionality in the past to the bundle:install command? I thought that one is a inherited one regards, Achim 2017-08-09 17:20 GMT+02:00 Nicolas Brasey : > It worked on 4.0.8 but I did

Re: Karaf 4.1.x / httplite incompatibility

2017-08-08 Thread Achim Nierbeck
left over from > somewhere that had got detached from NetBeans… When I killed it the problem > went away. > > Apologies. > > Steve > > On 8 Aug 2017, at 13:37, Achim Nierbeck <bcanh...@googlemail.com> wrote: > > Hi, > > looks more like you already have another i

Re: Karaf 4.1.x / httplite incompatibility

2017-08-08 Thread Achim Nierbeck
Hi, looks more like you already have another instance of Karaf running, no? regards, Achim 2017-08-08 12:55 GMT+02:00 winnall : > Jean-Baptiste Onofré fixed this issue for 4.1.2 and others. Thank you! So - > with the release today of 4.1.2 - I tried it out. The original

Re: Turn off Karaf configuration persistence manager

2017-08-06 Thread Achim Nierbeck
Hi, I guess it's been missing a version till now. I added it to version 4.2.0. For a patch level version this change does have to much implications. regards, Achim 2017-08-06 13:45 GMT+02:00 Dominik Przybysz : > Hi, > is there any chance that KARAF-4803 [1] will be

Re: war deployment servlet spec 3

2017-07-27 Thread Achim Nierbeck
Hi Matt, it depends on what kind of Servlet3 application you deploy. As Karaf doesn't use jetty directly but uses Pax Web as intermediate layer for the deployment and management of web applications in an OSGi manner. Actually you can also replace Jetty with undertow or Tomcat. Never the less,

Re: Features for Async and UserAdmin services?

2017-07-27 Thread Achim Nierbeck
Hi Scott, for user admin service there is the ops4j project of course Useradmin ;) it also contains a feature file: https://github.com/ops4j/org.ops4j.pax.useradmin about Async I'm not sure but afaik there is an aries project available, my best guess is, that there also might be a feature file

Re: Karaf in Docker

2017-06-16 Thread Achim Nierbeck
Hi, I recently used the following as entry point: https://github.com/ANierbeck/Karaf-Vertx/blob/master/Vertx-Karaf-Cluster-Docker/src/main/resources/entrypoint.sh the docker is generated through a maven build: but that one uses this entry file:

Re: Karaf 4 - how to set properties for commands

2017-06-15 Thread Achim Nierbeck
Hi Martin, afaik you still can also use the "old" style with blueprint. As you are using blueprint anyway that shouldn't be much of a big deal. The idea about the new command way is to not depend on blueprint for Karaf internals. The @Reference annotation is actually a karaf own annotation,

Re: Does hibernate work in karaf 4.1 (it does in 4.0)?

2017-06-14 Thread Achim Nierbeck
Hi tom, I know Karaf 4.1.1 and Hibernate works, though I don't have an OSS project at hand to prove it. I might sound a bit grumpy, but my gut feeling tells me the root to your issues are those bndtools generated bundles. I fear sometimes they do provide to much "included" when run in a Karaf

Re: Why can I not satisfy "(&(osgi.extender=osgi.component)(version>=1.3.0)(!(version>=2.0.0)))"

2017-06-14 Thread Achim Nierbeck
Hi Tom, also, how does your bnd "project" look like, my gut feeling tells me right now, it might be because of duplicate bundles installed via std. Karaf and bnd-tools, may this be an issue? regards, Achim 2017-06-14 10:08 GMT+02:00 Jean-Baptiste Onofré : > Hi, > > Can you

Re: org.ops4j.pax.url.wrap/2.5.2 missing org.slf4j package?

2017-06-13 Thread Achim Nierbeck
Thank good for Karaf features, I don't actually have to "FIX" a bundle (like re-invent the world a second time) [1] I just need to make sure the feature declares a capability that a bundle "should" have, though I've to admit that those requirements added by bnd is actually more hindering then

Re: org.ops4j.pax.url.wrap/2.5.2 missing org.slf4j package?

2017-06-13 Thread Achim Nierbeck
Tom, the easiest would be to actually remove that "new" requirement for those components. A fix for this is on it's way for Pax Web, so you'll have something that'll work for you. regards, Achim 2017-06-13 19:40 GMT+02:00 : > > I'm trying to build a custom karaf

Re: Understanding features and dependencies

2017-06-13 Thread Achim Nierbeck
Regarding the capabilities, both. It's determined by A) the bundles manifest entry. But in certain cases those bundles don't explicit describe their capabilities fully. In those cases it helps if the feature itself does describe that capability. regards, Achim 2017-06-13 13:55 GMT+02:00

Re: Exception starting karaf custom distro "minimal example" from docs

2017-06-13 Thread Achim Nierbeck
regarding your "maven" confidence ... do you happen to have a "Proxy" connected to your maven setup? In rare cases, or flaky internet connections your bundles might not have been a jar at all, but a http error code ;) This happens in rare cases. Best to do a mvn clean install -U for updating all

Re: missing requirement osgi.contract=JavaServlet

2017-06-12 Thread Achim Nierbeck
You are right, pax-web should provide you with that, please open an issue for it at https://ops4j1.jira.com/projects/PAXWEB if you don't have an account, give me a ping I'll create that one for you. till this point in time, I wasn't even aware of that possible contract, that's why it's missing.

Re: missing requirement osgi.contract=JavaServlet

2017-06-12 Thread Achim Nierbeck
me. I'd suggest > using the repackaged servlet api from Apache Felix. > > Tim > > Sent from my iPhone > > On 12 Jun 2017, at 13:39, Achim Nierbeck <bcanh...@googlemail.com> wrote: > > taken from your first mail, > your bundle mybundle seems to declare an o

Re: missing requirement osgi.contract=JavaServlet

2017-06-12 Thread Achim Nierbeck
taken from your first mail, your bundle mybundle seems to declare an osgi contract on JavaServlet. Never seen that kind of dependency before. Make sure you have a clean import-package export-package structure in your bundle. I think that is your root issue. regarding using pax-web instead of

Re: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread Achim Nierbeck
thing else wrong now after fixing the feature references. > > > > I tried changing the “LogLevel” in my PaxExam configuration from WARNING > to DEBUG. This gave me a lot more information, but I don’t know if it’s > useful. Is there some other karaf config that might be relevant here

Re: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread Achim Nierbeck
rrect name now). The first features file also has > the following two bundle references: > > > mvn:com.att.detsusl/usl-fraudcheck-api/${pom.version} > > > mvn:com.att.detsusl/usl-fraudcheck-impl/${pom. > version} > > > > Note th

Re: PaxExam test using hibernate validator can't find validator

2017-06-05 Thread Achim Nierbeck
hmm ... to me this artifact: org.hibernate:hibernate-validator-osgi-karaf-features doesn't sound like a bundle but more like a feature. and according to this[1], it is a feature file. So make sure you reference the "hibernate-validator" feature in your own feature file. if you want to define a

Re: Weird behaviour when uninstalling feature with fragment

2017-05-29 Thread Achim Nierbeck
Hi Steinar ... Not sure, but at first glance this reminds me of a system.exit somewhere in the code. May it be that something in your code fires this on a "change" or Bundle stop? But maybe a lib your using might fire this in case of an "error". regards, Achim 2017-05-29 21:19 GMT+02:00 Steinar

Re: Standard Webapp unable to locate blueprint .xml

2017-04-30 Thread Achim Nierbeck
Either way is fine with samples. I'm not sure we have enough web samples in Karaf, usually all samples are directed to Pax-Web as it's the actual implementation of the Web-Container. regards, Achim 2017-04-28 10:55 GMT+02:00 smunro : > Ok, > > turns out that I was

Re: Simply Protect HTTP servlet

2017-04-29 Thread Achim Nierbeck
Hi Christiano, you could try with a servlet filter, though since you already have a Web-ContextPath you are actually already using the WAB approach. With Pax-Web the file-extension actually doesn't matter. So if you just add a web.xml to it you should be safe to use the default jaas mechanism

Re: going from karaf 4.0.9 to 4.1.1 broken logging

2017-04-26 Thread Achim Nierbeck
Hi, yeah I've already filed a bug for that in pax exam. I think this is due to the fact that Karaf 4.1.x uses the log4j2 backend instead of the log4j backend it previously used. regards, Achim [1] - https://ops4j1.jira.com/browse/PAXEXAM-815 2017-04-26 15:27 GMT+02:00 nino martinez wael

Re: Standard Webapp unable to locate blueprint .xml

2017-04-25 Thread Achim Nierbeck
Hi, here's one that uses blueprint to register servlets, though no WAB [1]. another one I have using cxf rest is also a non WAB bundle [2]. For a WAB with blueprint I'd need to create a sample first. That'll take some time though :) regards, Achim [1] -

Re: Standard Webapp unable to locate blueprint .xml

2017-04-25 Thread Achim Nierbeck
Hi, I'm not sure if the blueprint extender does have an issue with WAR types, but if changing it to JAR fixes your issue. Then go for using JARs ;) regards, Achim 2017-04-24 22:10 GMT+02:00 smunro : > Looking at this further, the getResources method in the code

Re: Standard Webapp unable to locate web.xml

2017-04-25 Thread Achim Nierbeck
Hi, first of all make sure to either only depend on an activator or on blueprint, it's something you shouldn't mix. If a JAR works for you, just stick to the jar, the actual zip file extension name isn't much of a concern. The Web-ContextPath element in the manifest is what makes it a WAB,

Re: Trying to use "mvn karaf:run"

2017-04-21 Thread Achim Nierbeck
Hmm Sounds a bit Over designed to me. How about building your own custom distribution based on the feature? Now your user just need to unpack the distribution and run Karaf add it is with bin/Karaf Regards, Achim Steinar Bang schrieb am Fr. 21. Apr. 2017 um 18:26: > I'm trying

Re: Is there a recent pax exam karaf provisioning example somewhere?

2017-04-16 Thread Achim Nierbeck
Did you also reference the pax-jdbc feature in your feature file? You'll need to declare that dependency to be installed. regards, Achim 2017-04-15 19:39 GMT+02:00 Steinar Bang : > > You wrote: > > > For now, I will go back to the surefire config (it saves me the job of > >

Re: Is there a recent pax exam karaf provisioning example somewhere?

2017-04-15 Thread Achim Nierbeck
-web-itest-karaf/src/test/java/org/ops4j/pax/web/itest/karaf 2017-04-15 16:00 GMT+02:00 Steinar Bang <s...@dod.no>: > >>>>> Achim Nierbeck <bcanh...@googlemail.com>: > > > the karaf container is always a forked process. If you want to run it as > > non-f

Re: Is there a recent pax exam karaf provisioning example somewhere?

2017-04-15 Thread Achim Nierbeck
And it might be that this is an issue on your windows box, cause I rarely have this kind of behavior on a mac. regards, Achim 2017-04-15 15:55 GMT+02:00 Achim Nierbeck <bcanh...@googlemail.com>: > Hi, > > the karaf container is always a forked process. If you want to run it as &

Re: Is there a recent pax exam karaf provisioning example somewhere?

2017-04-15 Thread Achim Nierbeck
Hi, the karaf container is always a forked process. If you want to run it as non-forked you can use the following configuration: runEmbedded(true) this is especially useful if you want to debug your tests, but beware because of the nature of how the tests run, this can only be used with

Re: Is there a recent pax exam karaf provisioning example somewhere?

2017-04-14 Thread Achim Nierbeck
Hi Steinar, it depends on what you want to test. ignoreLocalConsole can safely be enabled, it will produce much less noise on your log for your unit test. for a full list of configuration options, take a look at the Pax Exam documentation [1]. regards, Achim [1] -

Re: Blueprint and Pax-Web

2017-04-05 Thread Achim Nierbeck
Hi, glad you found a solution. But I think what you actually should be using is more like what is in this sample/integration-test [1] Registering a Servlet in one Bundle and re-using a filter from another bundle This is handled by a shared context. In your case you just need a resource servlet,

Re: bundle:watch

2017-04-04 Thread Achim Nierbeck
iano > > > > Il giorno mar 4 apr 2017 alle ore 11:20 Achim Nierbeck < > bcanh...@googlemail.com> ha scritto: > >> Hi, >> >> how do you install those bundles? >> For example if you have a bootfeature installing it, this won't work. >> As tho

Re: bundle:watch

2017-04-04 Thread Achim Nierbeck
Hi, how do you install those bundles? For example if you have a bootfeature installing it, this won't work. As those Bundles are used from the system folder. regards, Achim 2017-04-04 10:41 GMT+02:00 Cristiano Costantini < cristiano.costant...@gmail.com>: > Hello all, > > I am trying to use

Re: Best Practices for Web application published by Karaf

2017-03-30 Thread Achim Nierbeck
Hi, the Web-ContextPath is a OSGi Header and actually marks a WAR :D Therefore what Christian just provided is a nice way of using the default Servlet (Resource-Servlet) to use for static resources. Another way is to use the following: @Component( service = {Object.class,

Re: Best Practices for Web application published by Karaf

2017-03-29 Thread Achim Nierbeck
Hi Cristiano, as with any Web Container, you can use any approach you like. Actually you have much more approaches you can use. For example if you just want a JS/REST frontend, register your REST servlet as a Servlet Service, Pax Web will pick it up. That's the Whiteboard approach. As with Karaf

Re: Is anybody using Jetty client from Karaf?

2017-03-24 Thread Achim Nierbeck
Hi Scott, with Pax Web we use the Jetty client for testing Pax Web itself. Might want to take a look at the integration tests of Pax Web. regards, Achim 2017-03-24 6:03 GMT+01:00 Jean-Baptiste Onofré : > Hi Scott, > > I tested Jetty client without problem. Do you have an

Re: Run goal of karaf-maven-plugin does not configure the endorsed folders

2017-03-09 Thread Achim Nierbeck
Hi, don't know if this will help you, but as Pax-Exam does have a Karaf launcher, the sources might help you on finding a solution [1] regards, Achim [1] -

Re: Multiple bundles dependencies injection (pax-cdi or blueprint)

2017-03-06 Thread Achim Nierbeck
Hi, just some comments from the peanut gallery :-) If you just want to wire services between different bundles, stick with DS. If you also want to have the full Context and Dependency injection stuff within your own bundle, for example some inner bundle bean wiring. In that case go with Pax-CDI.

Re: Deploying config files

2017-02-26 Thread Achim Nierbeck
Hi Kerry, I'm not sure I follow the "template" logic here. with the property you can add any kind of configuration file. One Use-Case for example is to place the needed jetty.xml file along the installation of the pax-web feature. So I'm not sure I see something missing at this point, so please

Re: missing requirement [...] osgi.service; effective:=active; filter:="(objectClass=org.osgi.service.log.LogService)"

2017-02-22 Thread Achim Nierbeck
Actually it's not really a bug in Pax-Logging, as the feature.xml is provided by Karaf. And it's easy to fix for us, cause we just need to add this capability to the feature.xml of the pax-logging feature we have in Karaf. we just need to add the following snippet to the feature.xml

Re: Single install Karaf failover configuration using shared disk

2017-02-17 Thread Achim Nierbeck
Hi, did you take a look at the documentation[1]? I think that should be enough to run Karaf in a HA - Failover mode :-) With a Filesystem lock and a certain "start"-level for your bundles that should be easily configurable between a Cold and a Hot-Stand-By. regards, Achim [1] -

Re: K410: Exception caused by Jetty bug

2017-02-17 Thread Achim Nierbeck
Thanks, will take care of that, the coming weekend. regards, Achim 2017-02-17 9:52 GMT+01:00 Markus Rathgeb : > Hi Achim, > > I have created the issues: > * https://ops4j1.jira.com/browse/PAXWEB-1065 > * https://issues.apache.org/jira/browse/KARAF-4990 > > Best regards, >

Re: K410: Exception caused by Jetty bug

2017-02-17 Thread Achim Nierbeck
Hi, please open an issue at OPS4j Pax Web for this dependency upgrade, and also an Issue at Karaf for updating to the next patch level version. That way we can keep track of it. regards, Achim 2017-02-16 20:39 GMT+01:00 Markus Rathgeb : > Hi, > > after I changed some

Re: Tomcat as Karaf WebContainer

2017-01-30 Thread Achim Nierbeck
Hi, actually you have the choice between three containers by now. That is Jetty - default Tomcat - do not use in production and Undertow - not sure if it's safe to use in production regards, Achim 2017-01-30 14:24 GMT+01:00 Jean-Baptiste Onofré : > Hi Svetlin, > > Karaf

Re: 4..1.0-SNAPSHOT failing to build

2017-01-21 Thread Achim Nierbeck
Hi, sometimes the integration tests a) take a bit long b) have some blinking tests to have it run quicker, just use -DskipTests concerning repositories, it's available from [1] and if not b) interferes with the build, those snapshots are regularly build at [2] regards, Achim [1] -

Re: Levels of Containerization - focus on Docker and Karaf

2017-01-12 Thread Achim Nierbeck
So in the end it looks like Karaf-Boot with profiles, as I tried some long time ago :) would be the best match to what I've seen so far in this thread. The idea I had at the time would be to actually merge those static profiles with a maven plugin generating the static Karaf assembly via the

Re: Aw: Re: Shell commands are unavailable #1

2017-01-05 Thread Achim Nierbeck
@Guillaume look here: https://issues.apache.org/jira/browse/KARAF-4926 :) regards, Achim 2017-01-06 8:33 GMT+01:00 Guillaume Nodet : > I found the problem and I have a fix locally. > Has a jira been raised already ? > > 2017-01-06 7:39 GMT+01:00 Jean-Baptiste Onofré

Re: SCP and SFTP not working

2017-01-05 Thread Achim Nierbeck
ll-ssh.xml#L86-L92 > > 3.x has both scp and ftp enabled: > https://github.com/apache/karaf/blob/karaf-3.0.x/shell/ > ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L103-L120 > > 2017-01-05 17:37 GMT+01:00 Achim Nierbeck <bcanh...@googlemail.com>: > >>

Re: SCP and SFTP not working

2017-01-05 Thread Achim Nierbeck
Hi, as Karaf uses Apache Mina, for it's SSH server you'll most likely need to take a look if it's even possible. AFAIK it's only a simple SSH server, so no extra functionality like sftp or scp are supported. If you want to have a full-blown SSH server you need to use the operating system

Re: karaf decanter kibana not start

2016-12-16 Thread Achim Nierbeck
Hi, yeah, or change the realm name in the jetty.xml used by Pax-Web. regards, Achim 2016-12-16 11:53 GMT+01:00 Jean-Baptiste Onofré : > Hi, > > For JNA, as I said, it should not be a blocker. > > Kibana Decanter expect a Karaf realm. If your realm uses a different name, >

Re: Exit a child instance without stopping it

2016-12-12 Thread Achim Nierbeck
Usually the child instances spawn their own process. So you connect to it via SSH, therefore just disconnect via Ctrl-D as from any other remote shell. Regards, Achim sent from mobile device Am 13.12.2016 2:59 vorm. schrieb "CodeCola" : > I am in > > karaf@Container2> > >

  1   2   3   4   5   6   7   8   9   10   >