Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-26 Thread Paul Spencer
application relies on the following installed features: cxf-jaxrs jackson-jaxrs pax-web-http-whiteboard pax-web-karaf aries-jax-rs-whiteboard aries-jax-rs-whiteboard-jackson Also I have learned that resetting the Karaf environment with “karaf clean

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-26 Thread Jaap Gordijn
ce != null, so DI work here This drives me into the direction that there is no problem with dependencies. It seems that if @JaxrsApplicationSelect and @JSONRequired are used at the same time, no DI happens. Best, -- Jaap > -Original Message- > From: Paul Spencer > Sent: donde

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-25 Thread Paul Spencer
@JaxrsApplicationSelect in combination with DS? > It seems now that Application/@JaxrsApplicationBase ignores DS. > > -- Jaap > >> -Original Message- >> From: Paul Spencer >> Sent: dinsdag 24 januari 2023 01:41 >> To: user@karaf.apache.org >>

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-25 Thread Jaap Gordijn
: Paul Spencer > Sent: dinsdag 24 januari 2023 01:41 > To: user@karaf.apache.org > Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not > with DS > > - Does bundle:headers for the REST bundle have a required capability to the > Person Service, foo.bar.PersonS

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
does not produce any output > > Best, > > -- Jaap > >> -Original Message- >> From: Paul Spencer >> Sent: maandag 23 januari 2023 23:12 >> To: user@karaf.apache.org >> Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not >

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
Paul, - scr is installed and started - the person bundle started - diag does not produce any output Best, -- Jaap > -Original Message- > From: Paul Spencer > Sent: maandag 23 januari 2023 23:12 > To: user@karaf.apache.org > Subject: Re: aries-jax-rs-

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
null, so no DI. > > I enabled DEBUG in the log. > > I only see DEBUG messages for " org.eclipse.jetty.util". > Not for anything else. > > Nevertheless, feature:list | grep jax > Results in: > > aries-jax-rs-whiteboard │ 2.0.2

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
sonService null" + (personService == null)); return "test"; } The personService remains null, so no DI. I enabled DEBUG in the log. I only see DEBUG messages for " org.eclipse.jetty.util". Not for anything else. Nevertheless, feature:list | grep

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
otation. > This doesn't work, the variable remains null. > No injection is happening. > > -- Jaap > >> -Original Message- >> From: Paul Spencer >> Sent: maandag 23 januari 2023 21:09 >> To: user@karaf.apache.org >> Subject: Re: aries-ja

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
Paul, I tried also the @Reference annotation. This doesn't work, the variable remains null. No injection is happening. -- Jaap > -Original Message- > From: Paul Spencer > Sent: maandag 23 januari 2023 21:09 > To: user@karaf.apache.org > Subject: Re: aries-ja

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
gt; Sent: maandag 23 januari 2023 18:59 >> To: user@karaf.apache.org >> Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not >> with DS >> >> Jaap, >> Your @Activate annotation is incorrect. >> Try the following. >>

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
gt; To: user@karaf.apache.org > Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not > with DS > > Jaap, > Your @Activate annotation is incorrect. > Try the following. > > > … > public class Rest() { > > @Reference > private PersonService

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Paul Spencer
Jaap, Your @Activate annotation is incorrect. Try the following. … public class Rest() { @Reference private PersonService personService; @Activate public void activate(Map properties) { ... } } Paul Spencer > On Jan 23, 2023, at 12:40 PM, Jaap Gordijn wrote: > > H

aries-jax-rs-whiteboard with @JaxrsApplicationSelect works not with DS

2023-01-23 Thread Jaap Gordijn
Hi, I use an Application object (with @JaxrsApplicationSelect), injection via DS does not work: @Component(service = Rest.class, scope = ServiceScope.PROTOTYPE) @JaxrsResource @JaxrsApplicationSelect("(" + JaxrsWhiteboardConstants.JAX_RS_NAME + "=MyApplication)") @JSONRequired @Produces(MediaType

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Paul Spencer
> } > > } > > Now the endpoint resolves. > > But DS dependency injection does not work. > Is there something needed to switch this on? > > -- Jaap > >> -Original Message- >> From: Paul Spencer >> Sent: maandag 23 ja

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Jaap Gordijn
resolves. But DS dependency injection does not work. Is there something needed to switch this on? -- Jaap > -Original Message- > From: Paul Spencer > Sent: maandag 23 januari 2023 15:16 > To: user@karaf.apache.org > Subject: Re: aries-jax-rs-whiteboard with @Ja

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Paul Spencer
.137:8181/example/person's Observer > > Best, > > -- Jaap > >> -Original Message- >> From: Paul Spencer >> Sent: maandag 23 januari 2023 13:13 >> To: user@karaf.apache.org >> Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelec

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Jaap Gordijn
The strange thing is at that if I remove the @JaxrsApplicationSelect in the Rest service class, then it works. But not with the Application class. -- Jaap > -Original Message- > From: Paul Spencer > Sent: maandag 23 januari 2023 14:11 > To: user@karaf.apache.org &

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Paul Spencer
> The strange thing is at that if I remove the @JaxrsApplicationSelect in the > Rest service class, then it works. But not with the Application class. > > -- Jaap > >> -Original Message- >> From: Paul Spencer >> Sent: maandag 23 januari 2023 14

RE: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Jaap Gordijn
aap > -Original Message- > From: Paul Spencer > Sent: maandag 23 januari 2023 13:13 > To: user@karaf.apache.org > Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and > @JSONRequired result in 404 > > Jaap, > 1) You can use the web: commands to

Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Paul Spencer
Jaap, 1) You can use the web: commands to verify the expected context exists 2) Review karaf.log to verify the the bundle startup and post relevant errors 3) I use the following features: jackson pax-web-http-whiteboard aries-jax-rs-whiteboard aries-jax-rs-whiteboard-jackson Paul Spencer

aries-jax-rs-whiteboard with @JaxrsApplicationSelect and @JSONRequired result in 404

2023-01-23 Thread Jaap Gordijn
Hi, I have a problem with aries-jax-rs-whiteboard and the use of @JaxrsApplicationSelect and @JSONRequired in combination. That results in an inaccessible service (404). If I disable the JSON annotations, the /test service works (via /example/text Code: @Component(service = Rest.class, scope

Re: aries-jax-rs-whiteboard

2022-06-27 Thread Matthias Leinweber
>>>> requestContext.abortWith(Response.status(Response.Status.FORBIDDEN).build()); >>>> } >>>> >>>> static Permission getPermissionForResource(ResourceInfo >>>> resourceInfo) { >>>> >>>> Permission permis

Re: aries-jax-rs-whiteboard

2022-06-27 Thread João Assunção
ed = annotatedElement.getAnnotation(Secured.class); >>> return secured == null ? null : secured.value(); >>> } >>> >>> private static class InternalSecurityContext implements >>> SecurityContext { >>> >>> pri

Re: aries-jax-rs-whiteboard

2022-06-27 Thread Matthias Leinweber
using role base authorization >> return true; >> } >> >> @Override >> public boolean isSecure() { >> >> return secure; >> } >> >> @Override >> public String getAuthenticati

Re: aries-jax-rs-whiteboard

2022-06-23 Thread João Assunção
*/ > public static TokenAuthenticationFilter createTestInstance(JwtService > jwtService) { > > TokenAuthenticationFilter filter = new TokenAuthenticationFilter(); > filter.jwtService = jwtService; > return filter; > } > } > The Secured ann

Re: aries-jax-rs-whiteboard

2022-06-23 Thread Jean-Baptiste Onofré
Hi Matthias, Which Karaf version are you using ? Aries JAX RS is tested in Karaf itests but due to some changes in Aries JAX-RS whiteboard, we didn't update yet. You can take a look on the example: https://github.com/apache/karaf/tree/main/examples/karaf-rest-example I created

aries-jax-rs-whiteboard

2022-06-22 Thread Matthias Leinweber
Hello Karaf user, i try to get aries-jax-rs-whiteboard in a version > 1.0.6 running without success. 2.0.1 with installed cxf is working fine. But in 1.0.7-1.0.10. http:list does not show a servlet and my jaxrs whiteboard resources are not working. Any hints which component needs to be instal

Re: Aries jax-rs whiteboard

2019-11-19 Thread Matthias Leinweber
o run. > > Besides the versioning of org.apache.aries.jax.rs.jackson seems broken and > the feature has a hardcoded dep on version 1.0.0 which source i cant find > at all.. and the artifacts in current source aren't build at all. > > > This is the CI job for the Aries JAX

Re: Aries jax-rs whiteboard

2019-11-18 Thread Tim Ward
t source aren't build at all. This is the CI job for the Aries JAX-RS Whiteboard integration projects, which are built separately from the whiteboard because they evolve at different speeds. https://builds.apache.org/job/Aries-JAX-RS-Whiteboard-Integrations/ <https://builds.apache.

Re: Aries jax-rs whiteboard

2019-11-17 Thread Matthias Leinweber
to use a own > MessageWriter/Reader. I just want to use the one provided by aries-http > whiteboard: > [javax.ws.rs.ext.MessageBodyReader, javax.ws.rs.ext.MessageBodyWriter] > -- > jackson.jaxb.version = 2.9.

Re: Aries jax-rs whiteboard

2019-11-15 Thread Tim Ward
eader, javax.ws.rs.ext.MessageBodyWriter] >> -- >> jackson.jaxb.version = 2.9.6 >> jackson.jaxrs.json.version = 2.9.6 >> osgi.jaxrs.extension = true >> osgi.jaxrs.media.type = application/json >>

Re: Aries jax-rs whiteboard

2019-11-15 Thread Matthias Leinweber
.version = 2.9.6 > jackson.jaxrs.json.version = 2.9.6 > osgi.jaxrs.extension = true > osgi.jaxrs.media.type = application/json > osgi.jaxrs.name = jaxb-json > service.bundleid = 46 > service.id = 170 > service.ranking = -2147483648 > service.scope = p

Re: Aries jax-rs whiteboard

2019-11-15 Thread Oleg Cohen
ation/json > osgi.jaxrs.name <http://osgi.jaxrs.name/> = jaxb-json > service.bundleid = 46 > service.id <http://service.id/> = 170 > service.ranking = -2147483648 > service.scope = prototype > Provided by : > Apache Aries JAX-RS JAX-RS Jackson (46) >

Re: Aries jax-rs whiteboard

2019-11-15 Thread Matthias Leinweber
S JAX-RS Jackson (46) Used by: Apache Aries JAX-RS Whiteboard (47) But something is wrong... My components are configured this way... @Component( service = Application.class, property = { "osgi.jaxrs.name=MyApp", "osgi.jaxrs.application.base=/app", &quo

Re: Aries jax-rs whiteboard

2019-11-15 Thread Tim Ward
lt;http://osgi.jaxrs.name/>=myApp", >>>> "osgi.jaxrs.application.base=/foo"}, service = A.class) >>>> class... >>>> That does not work or did I misunderstood something? >>> >>> If you want to register an application with the w

Re: Aries jax-rs whiteboard

2019-11-14 Thread Matthias Leinweber
d then you must >>> register it as a javax.ws.rs.core.Application in the service registry. >>> This is outlined at https://osgi.org/specification/osgi.cmpou >>> cann/7.0.0/service.jaxrs.html#service.jaxrs.application.services >>> <https://osgi.org/specificat

Re: Aries jax-rs whiteboard

2019-11-08 Thread Tim Ward
>> https://osgi.org/specification/osgi.cmpou >> cann/7.0.0/service.jaxrs.html#service.jaxrs.application.services >> <https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html#service.jaxrs.application.services> >> >>> Second how do i create ad

Re: Aries jax-rs whiteboard

2019-11-07 Thread Jean-Baptiste Onofré
rs.application.services >> >> <https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html#service.jaxrs.application.services> >> >>> Second how do i create additional Servlets and how do I >>> select them in a resource? >>>

Re: Aries jax-rs whiteboard

2019-11-07 Thread Matthias Leinweber
; <https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html#service.jaxrs.application.services> >> >> Second how do i create additional Servlets and how do I select them in a >> resource? >> E.g. A configfile/servicepid >> org.apache.aries.jax.rs.white

Re: Aries jax-rs whiteboard

2019-11-07 Thread Tim Ward
>> should create an additional servlet container? > > I’m not sure that I totally follow here. It looks like you’re trying to > create a configuration for another Aries JAX-RS whitboard instance - is this > really what you want, a second JAX-RS whiteboard? The Aries

Re: Aries jax-rs whiteboard

2019-11-07 Thread Matthias Leinweber
refix=/bar > should create an additional servlet container? > > > I’m not sure that I totally follow here. It looks like you’re trying to > create a configuration for another Aries JAX-RS whitboard instance - is > this really what you want, a second JAX-RS whiteboard? The Aries JAX-R

Re: Aries jax-rs whiteboard

2019-11-07 Thread Tim Ward
refix=/bar > should create an additional servlet container? I’m not sure that I totally follow here. It looks like you’re trying to create a configuration for another Aries JAX-RS whitboard instance - is this really what you want, a second JAX-RS whiteboard? The Aries JAX-RS Whiteboard is desig

Re: Aries jax-rs whiteboard

2019-11-06 Thread Matthias Leinweber
Hi JB, yes that was my first place to start... really like the examples in the source, they are really helpful. ok: Fist thing are JAXRs Applications. In OSGI7 we will use @JaxrsName("myApp") @JaxrsApplicationBase("foo") @Component class in OSGI 6 I think we should be able to use @Component(p

Re: Aries jax-rs whiteboard

2019-11-06 Thread Jean-Baptiste Onofré
Hi Matthias, did you take a look on the Karaf example ? https://github.com/apache/karaf/tree/master/examples/karaf-rest-example It contains different approaches, including whiteboard. Can you describe a bit what you are looking for ? We can then create the Jira at Karaf/Aries to improve example

Aries jax-rs whiteboard

2019-11-06 Thread Matthias Leinweber
Hello Karaf Team, I know that this not the 100% correct mailing list for aries jax-rs. However my question is what do you plan for further releases of Karaf? I try to use the aries implementation but I struggle with the configuration. Beside the incomplete documentation and the "very special" DSL

Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread xav
Hi Tim, Jb, It's works, Here the solution: Extension @Component(property = {"*osgi.jaxrs.extension=true*"}) @Produces(MediaType.APPLICATION_JSON) public class RestExceptionMapper implements ExceptionMapper { .. .. } Ressource @Component(property = { "*osgi.jaxrs.resource=true*" }, serv

Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread Tim Ward
I note that you’re using the Component Property annotations for the extension, but a raw property entry for the resource. If your build plugin is able to cope with Component Property annotations then you can use the @JaxrsResource annotation instead of a magic string. If your build plugin can’t

Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread xav
Hi tim, I use JAXRS resource My RestExceptionMapper is coded like this @JaxrsExtension @Component(service = RestExceptionMapper.class, name = "RestExceptionMapper", immediate = true) public class RestExceptionMapper implements ExceptionMapper My ressources @Component( property

Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread Tim Ward
>> I don't know if, the aries withboard project (1.0.4) has implemented the >> spec? As Aries JAX-RS Whiteboard is the reference implementation I can say with reasonable confidence that it has implemented the specification. The issue is that the application code you have sup

Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread Jean-Baptiste Onofré
Do you have a JAXRS Application containing the ExceptionMapper or are you using JAXRS resource ? Regards JB On 02/04/2019 11:28, xav wrote: > Hi JB, > > Yes I did, but it's does not work!! > The Exception is throw in the console, and not trap to put my own http > response. > So ??? > I don't kno

Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread xav
Hi JB, Yes I did, but it's does not work!! The Exception is throw in the console, and not trap to put my own http response. So ??? I don't know if, the aries withboard project (1.0.4) has implemented the spec? Thx Xav -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread Tim Ward
2/04/2019 10:27, xav wrote: >> Hi all, >> >> I use https://github.com/apache/aries-jax-rs-whiteboard on karaf to provide >> a REST API. >> It's works but now I try to provide an ExceptionMapper with the annotation >> @Provider >> >> @Provider &g

Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread Jean-Baptiste Onofré
Hi Xavier, As you have a RestExceptionMapper dealing with RestCommonException, you should have: @GET @Path("/foo") public String hello(String message) throws RestCommonException { ... } ? Regards JB On 02/04/2019 10:27, xav wrote: > Hi all, > > I use https://github.com/

ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above.

2019-04-02 Thread xav
Hi all, I use https://github.com/apache/aries-jax-rs-whiteboard on karaf to provide a REST API. It's works but now I try to provide an ExceptionMapper with the annotation @Provider @Provider public class RestExceptionMapper implements ExceptionMapper { .. .. } But unfortunatel

Re: Aries JAX-RS Whiteboard

2018-12-05 Thread Jean-Baptiste Onofré
Hi, This is the WIP about the Aries JAX-RS Whiteboard features: https://github.com/apache/aries-jax-rs-whiteboard/pull/11 And here's the WIP for the JAX-RS Whiteboard Karaf example: https://github.com/jbonofre/karaf/tree/KARAF-5901/examples/karaf-rest-example I will finalize this tom

Re: Aries JAX-RS Whiteboard

2018-12-05 Thread Markus Rathgeb
Hi JB, can you please point me to the correct repositories? I cannot find your commits. Best regards, Markus

Re: Aries JAX-RS Whiteboard

2018-12-03 Thread Jean-Baptiste Onofré
No problem ;) Regards JB On 03/12/2018 14:59, Christian Schneider wrote: > Pretty cool .. sorry I missed that. > > Christian > > Am Mo., 3. Dez. 2018 um 08:33 Uhr schrieb Jean-Baptiste Onofré > mailto:j...@nanthrax.net>>: > > Hi, > > yes, it's what I said in my previous e-mail: Karaf

Re: Aries JAX-RS Whiteboard

2018-12-03 Thread Christian Schneider
Pretty cool .. sorry I missed that. Christian Am Mo., 3. Dez. 2018 um 08:33 Uhr schrieb Jean-Baptiste Onofré < j...@nanthrax.net>: > Hi, > > yes, it's what I said in my previous e-mail: Karaf example + features in > Aries. > > Regards > JB > > On 03/12/2018 08:27, Christian Schneider wrote: > >

Re: Aries JAX-RS Whiteboard

2018-12-02 Thread Jean-Baptiste Onofré
Hi, yes, it's what I said in my previous e-mail: Karaf example + features in Aries. Regards JB On 03/12/2018 08:27, Christian Schneider wrote: > Hi JB, > > can you add the jax-rs-whiteboard feature to the aries repo? I think it > makes sense to have it with the jax-rs code so it can be used wit

Re: Aries JAX-RS Whiteboard

2018-12-02 Thread Christian Schneider
Hi JB, can you add the jax-rs-whiteboard feature to the aries repo? I think it makes sense to have it with the jax-rs code so it can be used with different karaf versions. Christian Am Mo., 3. Dez. 2018 um 07:39 Uhr schrieb Jean-Baptiste Onofré < j...@nanthrax.net>: > Hi Markus, > > yes I will

Re: Aries JAX-RS Whiteboard

2018-12-02 Thread Jean-Baptiste Onofré
Hi Markus, yes I will push the PRs (Karaf example with feature repo + Aries features repo that will replace the one in Karaf example) later today. Regards JB On 03/12/2018 06:03, Markus Rathgeb wrote: > Hi JB, > > as I'm creating the Aries JAXRS feature for Karaf, I'm currently using >

Re: Aries JAX-RS Whiteboard

2018-12-02 Thread Markus Rathgeb
Hi JB, as I'm creating the Aries JAXRS feature for Karaf, I'm currently using > the one from Aries. > could you share your feature? Best regards, Markus

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread tom
> as I'm creating the Aries JAXRS feature for Karaf, I'm currently using > the one from Aries. That's the one I used.

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Jean-Baptiste Onofré
ive you > everything that you need. > > > > I have it all working now. I've had to make one or two changes > though, as a result of the change from jersey to cxf. > > > > Generally, the implementation was pretty easy, it certainly works &

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Raymond Auge
> > > I have it all working now. I've had to make one or two changes though, > as a result of the change from jersey to cxf. > > > > Generally, the implementation was pretty easy, it certainly works to use > Aries JAX-RS Whiteboard within Karaf 4.1.2. Once I wor

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Jean-Baptiste Onofré
y that will give you everything that you >> need. > > I have it all working now. I've had to make one or two changes though, as a > result of the change from jersey to cxf. > > Generally, the implementation was pretty easy, it certainly works to use > Aries JAX-RS Whiteboa

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Tim Ward
Ray is correct to point this out. Using the ClientBuilder service avoids the lifecycle issues that you were seeing, and gives you a way to set up clients using different sets of extensions and configurations. Unfortunately the “classic” usage of the JAX-RS API with its prevalence of static met

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Tim Ward
identical resource methods based on service ranking order (as per the JAX-RS Whiteboard spec). This shouldn’t affect the scenario that you propose, but it is possible that it might. Definitely worth raising a bug with the Aries JAX-RS Whiteboard including your testcase, even if it turns out to

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread tom
> Did you notice that the JAX-RS Whiteboard provides a ClientBuilder > (prototype scoped) service? > > e.g. > @Reference > ClientBuilder clientBuilder; > Ah, no, I hadn't. I had read the words, but obviously not understood the significance. Thanks for the pointer.

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Raymond Auge
s though, as > a result of the change from jersey to cxf. > > Generally, the implementation was pretty easy, it certainly works to use > Aries JAX-RS Whiteboard within Karaf 4.1.2. Once I worked out what the > required dependency bundles were, it was OK. Anecdotally the requests seem &

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread tom
xf. Generally, the implementation was pretty easy, it certainly works to use Aries JAX-RS Whiteboard within Karaf 4.1.2. Once I worked out what the required dependency bundles were, it was OK. Anecdotally the requests seem faster than using jersey as well, though I haven't done any testing

Re: Aries JAX-RS Whiteboard

2018-11-23 Thread Scott Lewis
ebrew whiteboard service to register JAXRS endpoints. I'm looking to replace this with a better solution, presumably based around the OSGi JAXRS whiteboard spec. and aries-jax-rs-whiteboard (https://github.com/apache/aries-jax-rs-whiteboard) since that now exists, which it didn't when

Re: Aries JAX-RS Whiteboard

2018-11-23 Thread Tim Ward
;> On 22 Nov 2018, at 18:07, t...@quarendon.net wrote: >>> >>>> Honestly, it sounds like you’re about 30 minutes away from having the >>>> Aries JAX-RS Whiteboard working... >>> >>> OK, Understand your reference to servicemix annotation earlie

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
t;> >>> Honestly, it sounds like you’re about 30 minutes away from having the Aries >>> JAX-RS Whiteboard working... >> >> OK, Understand your reference to servicemix annotation earlier. >> I had to pick up the org.apache.felix.http.servlet-api-1.1.2.jar to g

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
give you everything that you need. Tim > On 22 Nov 2018, at 18:07, t...@quarendon.net wrote: > >> Honestly, it sounds like you’re about 30 minutes away from having the Aries >> JAX-RS Whiteboard working... > > OK, Understand your reference to servicemix annotation earl

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
Regards JB On 22/11/2018 19:07, t...@quarendon.net wrote: >> Honestly, it sounds like you’re about 30 minutes away from having the Aries >> JAX-RS Whiteboard working... > > OK, Understand your reference to servicemix annotation earlier. > I had to pick up the org.apache.fe

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread tom
> Honestly, it sounds like you’re about 30 minutes away from having the Aries > JAX-RS Whiteboard working... OK, Understand your reference to servicemix annotation earlier. I had to pick up the org.apache.felix.http.servlet-api-1.1.2.jar to get the JavaServlet contract version 3.1. I&

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
ndle) which seems to be only in Compendium R7 (not R6). >>> >>> Regards >>> JB >>> >>> >>> On 22/11/2018 17:10, Tim Ward wrote: >>>>> that won't work out of the box as Karaf 4.2.x is still R6. >>>> >>>&g

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
hiteboard bundle) which seems to be only in Compendium R7 (not R6). >>> >>> Regards >>> JB >>> >>> >>> On 22/11/2018 17:10, Tim Ward wrote: >>>>> that won't work out of the box as Karaf 4.2.x is still R6. >>>> &

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
> >> Regards >> JB >> >> >> On 22/11/2018 17:10, Tim Ward wrote: >>>> that won't work out of the box as Karaf 4.2.x is still R6. >>> >>> Aries JAX-RS Whiteboard runs quite happily on R6. Obviously the DS >>> component

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
R6). >> >> Regards >> JB >> >> >> On 22/11/2018 17:10, Tim Ward wrote: >>>> that won't work out of the box as Karaf 4.2.x is still R6. >>> >>> Aries JAX-RS Whiteboard runs quite happily on R6. Obviously the DS >>> comp

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
he missing package is org.osgi.service.jaxrs.client (required by Aries > JAXRS Whiteboard bundle) which seems to be only in Compendium R7 (not R6). > > Regards > JB > > > On 22/11/2018 17:10, Tim Ward wrote: >>> that won't work out of the box as Karaf 4.2.x is still

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
Hi Tim, the missing package is org.osgi.service.jaxrs.client (required by Aries JAXRS Whiteboard bundle) which seems to be only in Compendium R7 (not R6). Regards JB On 22/11/2018 17:10, Tim Ward wrote: >> that won't work out of the box as Karaf 4.2.x is still R6. > > Aries

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
> I'll hold off for now then. Honestly, it sounds like you’re about 30 minutes away from having the Aries JAX-RS Whiteboard working... > On 22 Nov 2018, at 16:14, t...@quarendon.net wrote: > >> that won't work out of the box as Karaf 4.2.x is still R6. >> &

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
This is the Jira tracking the Aries JAXRS Whiteboard example: https://issues.apache.org/jira/browse/KARAF-5901 I moving to 4.2.2 and I will provide an update there. Regards JB On 22/11/2018 17:19, Jean-Baptiste Onofré wrote: > Exactly, I have the same feeling: most of the time, we just want to

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
Exactly, I have the same feeling: most of the time, we just want to register a pretty simple JAXRS service as we do with blueprint: https://github.com/apache/karaf/tree/master/examples/karaf-rest-example/karaf-rest-example-provider However, today, using CXF (which works fine), we need to use blue

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
r now). Regards JB On 22/11/2018 17:10, Tim Ward wrote: >> that won't work out of the box as Karaf 4.2.x is still R6. > > Aries JAX-RS Whiteboard runs quite happily on R6. Obviously the DS component > property annotations would create a DS 1.4 requirement, but the DS reference &

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread tom
> that won't work out of the box as Karaf 4.2.x is still R6. > > It will work with Karaf 4.3.x that will be R7. > > In the mean time, I'm creating a very simply rest whiteboard pattern for > CXF. > It doesn't use all the JAXRS whiteboard spec, but just works fine for > most of the use cases. OK,

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
t; You should then be able to get away with relatively few bundles. The JAX-RS >> Whiteboard API, OSGi Promises + function, the Aries wrapping of the JAX-RS >> API and the Aries JAX-RS Whiteboard implementation should be enough. This is >> by far preferable to using CXF directly, whe

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
> that won't work out of the box as Karaf 4.2.x is still R6. Aries JAX-RS Whiteboard runs quite happily on R6. Obviously the DS component property annotations would create a DS 1.4 requirement, but the DS reference implementation also runs on R6. Even if you aren’t able to use DS 1

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
OSGi Promises + function, the Aries wrapping of the JAX-RS >> API and the Aries JAX-RS Whiteboard implementation should be enough. This is >> by far preferable to using CXF directly, where you don’t have proper >> resource isolation, nor do you have a nice way to apply extensions

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
cases. Regards JB On 22/11/2018 17:00, t...@quarendon.net wrote: >> You should then be able to get away with relatively few bundles. The JAX-RS >> Whiteboard API, OSGi Promises + function, the Aries wrapping of the JAX-RS >> API and the Aries JAX-RS Whiteboard implementation sho

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread tom
> You should then be able to get away with relatively few bundles. The JAX-RS > Whiteboard API, OSGi Promises + function, the Aries wrapping of the JAX-RS > API and the Aries JAX-RS Whiteboard implementation should be enough. This is > by far preferable to using CXF directly, whe

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
> Is aries-jax-rs-whiteboard compatible with karaf does any one know? Or does > it depend on things that aren't provided, or rely on other things from later > OSGi specs that it doesn't support? I'm finding I'm having to add in a bunch > of bundles, and I'

Aries JAX-RS Whiteboard

2018-11-22 Thread tom
based around the OSGi JAXRS whiteboard spec. and aries-jax-rs-whiteboard (https://github.com/apache/aries-jax-rs-whiteboard) since that now exists, which it didn't when we started out. Is aries-jax-rs-whiteboard compatible with karaf does any one know? Or does it depend on things that aren&