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

2023-01-26 Thread Paul Spencer
ed results in personService != null, so DI work here > - Disabling @JaxrsApplicationSelect results in personService != null, so DI > work here > > This drives me into the direction that there is no problem with dependencies. > It seems that if @JaxrsApplicationSelec

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:

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-ja

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

2023-01-23 Thread Paul Spencer
│ 3.5.5│ │ > Uninstalled │ cxf-3.5.5 │ > karaf@root()> > > This gives me the impression that the whitenboard stuff is working. > > -- Jaap &g

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

2023-01-23 Thread Jaap Gordijn
> > > -- Jaap > > > >> -Original Message- > >> From: Paul Spencer > >> Sent: maandag 23 januari 2023 21:09 > >> To: user@karaf.apache.org > >> Subject: Re: aries-jax-rs-whiteboard with @JaxrsApplicationSelect > >>

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

2023-01-23 Thread Paul Spencer
ence 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-jax-rs-

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: > >

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

2023-01-23 Thread Paul Spencer
return set; > } > > } > > 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

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

2023-01-23 Thread Paul Spencer
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 @JaxrsApplicationSelect and >> @JSONRequir

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

2023-01-23 Thread Jaap Gordijn
ion { } 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.

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 202

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

2023-01-23 Thread Jaap Gordijn
e- > 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 verify the expected context ex

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

Re: aries-jax-rs-whiteboard

2022-06-27 Thread Matthias Leinweber
Thank you very much Joao... lets see if i can somehow connect this with karaf jaas service br, Matthias Am Mo., 27. Juni 2022 um 17:40 Uhr schrieb João Assunção < joao.assun...@exploitsys.com>: > Hello Matthias. > > Sorry but I don't have a public repo with an example. > I had some issues in

Re: aries-jax-rs-whiteboard

2022-06-27 Thread João Assunção
Hello Matthias. Sorry but I don't have a public repo with an example. I had some issues in the past when using more recent versions of Aries JAX RS due to conflicts with the CXF version I was using in another service, so I kept using version 1.0.4. In my latest projects, where I needed more

Re: aries-jax-rs-whiteboard

2022-06-27 Thread Matthias Leinweber
Hello, I am using karaf 4.3.7 and yes I saw the examples in karaf. The version used is 1.0.6 which is pretty old. I tried to update to 1.0.10 but i dont see what is going wrong. There is the Application, Servlet, and Whiteboard. But the servlet is not accessible. With version 2.0.1 is cxf-core

Re: aries-jax-rs-whiteboard

2022-06-23 Thread João Assunção
Hello Matthias, Regarding authentication I normally use a ContainerRequestFilter. Follows an example of a filter where authentication is done using a JWT token. It uses JwtService that is responsible for creating and validating tokens. It uses jose4j. @Secured > @Provider >

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

Re: Aries jax-rs whiteboard

2019-11-19 Thread Matthias Leinweber
Well thank you for all the explanations I finally went for Olegs solution. I also tried to create a component service factory for a PrototypeServiceFactory with the required properties to select my application, but I failed. Best regards and thank you, Matthias Am Mo., 18. Nov. 2019 um 11:34 Uhr

Re: Aries jax-rs whiteboard

2019-11-18 Thread Tim Ward
Hi, > Ok, but why and how does it work for the default application?… I can not see > that JsonProviderPrototypeServiceFactory somehow adds a property for the > default app. The reason that it works in the default application is that, by default, whiteboard resources and extensions target the

Re: Aries jax-rs whiteboard

2019-11-17 Thread Matthias Leinweber
Hello Tim, thank you, again you improved my knowledge. I just stripped my code for simplicity. Ok, but why and how does it work for the default application? There i don't need to select an extension in the resource but serialization works? I can not see that JsonProviderPrototypeServiceFactory

Re: Aries jax-rs whiteboard

2019-11-15 Thread Tim Ward
Hi Matthias, So from the example that you’ve given I’m not sure why you have the whiteboard application at all. Providing an empty whiteboard application doesn’t really give you any benefit - the primary use case is for registering existing non-OSGi JAX-RS applications, or for where you

Re: Aries jax-rs whiteboard

2019-11-15 Thread Matthias Leinweber
Well yes that works but there must be a way to use JsonProviderPrototypeServiceFactory provided by the bundle: org.apache.aries.jax.rs.jackson. regards Matthias Am Fr., 15. Nov. 2019 um 16:35 Uhr schrieb Oleg Cohen < oleg.co...@assurebridge.com>: > Hi Matthias, > > I was in the same situation.

Re: Aries jax-rs whiteboard

2019-11-15 Thread Oleg Cohen
Hi Matthias, I was in the same situation. Here is what I ended up doing. Perhaps it will work for you. Here is my code: import java.util.HashSet; import java.util.Set; import javax.ws.rs.core.Application; import org.apache.logging.log4j.Logger; import

Re: Aries jax-rs whiteboard

2019-11-15 Thread Matthias Leinweber
Ok that is something i already tried. But i don't want 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] --

Re: Aries jax-rs whiteboard

2019-11-15 Thread Tim Ward
Hi Matthias, So it sounds as though you’re in the following situation: Providing a custom Application to the whiteboard The application service has the property osgi.jaxrs.name = MyApp set on the service registration Your application needs, but does not contain, JSON serialisation support You

Re: Aries jax-rs whiteboard

2019-11-14 Thread Matthias Leinweber
Ok i hit an additional problem. When i create a JaxRsApplication i can reference them in my resource everything works fine except the MessageWriter and MessageReader e.g. Jackson Extension is not found. --> No message body writer has been found for class ... ContentType: application/json Without

Re: Aries jax-rs whiteboard

2019-11-08 Thread Tim Ward
Hi, Yes, you can absolutely inject things using @Context (this is the only way to do server sent events, so it’s not optional for any implementation). It’s recommended that you inject into resource methods, rather than into fields, unless you make your service prototype scope. This is to avoid

Re: Aries jax-rs whiteboard

2019-11-07 Thread Jean-Baptiste Onofré
Hi Matthias, The Aries JAXRS Whiteboard implementation uses CXF behind the hood ;) Regards JB On 07/11/2019 17:24, Matthias Leinweber wrote: > Great. Thank you very much. > > I dont want to add CXF or Jersey. thank to your answer I have come up > with the idea myself to inject the  @Context

Re: Aries jax-rs whiteboard

2019-11-07 Thread Matthias Leinweber
Great. Thank you very much. I dont want to add CXF or Jersey. thank to your answer I have come up with the idea myself to inject the @Context HttpServletRequest into the JaxRS code. To mix in this: https://osgi.org/specification/osgi.cmpn/7.0.0/service.http.whiteboard.html#d0e120961 I didn't

Re: Aries jax-rs whiteboard

2019-11-07 Thread Tim Ward
Hi Matthias > I was a bit confused about how you could add a Servelt to the JaxRsWhiteboard > instead of the HttpWhiteboard for Multi-Part file uploads. I hope it’s now clear that the JAX-RS whiteboard does not support Servlets. You can either: Register a servlet with the Http Whiteboard and

Re: Aries jax-rs whiteboard

2019-11-07 Thread Matthias Leinweber
Hello Tim, thanks for your reply. I get the JaxRS Application thing wrong. I thought that an application and a JaxRsResource is/can be the same. But obviously, if you read the documentation correct, then not. Then it also makes sense to inject the Application with @Context Applicaiton app into a

Re: Aries jax-rs whiteboard

2019-11-07 Thread Tim Ward
> in OSGI 6 I think we should be able to use > @Component(property = {"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

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

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

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 tomorrow.

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

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é
Thanks Ray, as I'm creating the Aries JAXRS feature for Karaf, I'm currently using the one from Aries. Regards JB On 25/11/2018 06:06, Raymond Auge wrote: > > > On Sat, Nov 24, 2018, 23:48 Jean-Baptiste Onofré wrote: > > Hi Tom, > > I'm curious: what

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Raymond Auge
On Sat, Nov 24, 2018, 23:48 Jean-Baptiste Onofré Hi Tom, > > I'm curious: what JAXRS API bundle do you use (that provide the JAXRS > contract) ? > There's two you could use. The one in Aries jaxrs whiteboard repo that was built to bootstrap the project and the one from Apache Geronimo. - Ray >

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Jean-Baptiste Onofré
Hi Tom, I'm curious: what JAXRS API bundle do you use (that provide the JAXRS contract) ? Regards JB On 24/11/2018 19:24, t...@quarendon.net wrote: > >> The SSE from JAX-RS 2.1 definitely works (client and server side) with the >> Aries implementation, so hopefully that will give you

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread Tim Ward
Hi Tom, It looks like you’re having a lot of success. The NPE that you have identified for void methods is a known bug in 1.0.1 (introduced by a fix for a different problem in 1.0.0) and is already fixed in 1.0.2-SNAPSHOT. The release of 1.0.2 is planned soon - the vote would probably be

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
On Sat, Nov 24, 2018 at 1:24 PM wrote: > > > The SSE from JAX-RS 2.1 definitely works (client and server side) with > the Aries implementation, so hopefully 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

Re: Aries JAX-RS Whiteboard

2018-11-24 Thread tom
> The SSE from JAX-RS 2.1 definitely works (client and server side) with the > Aries implementation, so hopefully 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,

Re: Aries JAX-RS Whiteboard

2018-11-23 Thread Tim Ward
Hi, From a code perspective the enRoute Quickstart example only imports the package javax.ws.rs . It uses the OSGi contract for that package, which means that you would need to use an API which provides the contract. It also uses DS 1.4 annotations (and so picks up a DS

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
Hi Tim, does the enRoute examples work in Karaf ? (as we are on the Karaf mailing list ;)) Regards JB On 22/11/2018 20:53, Tim Ward wrote: > There are some fairly simple examples available in the enRoute project. In > general things should work as you expect, as long as you use the JAX-RS API,

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
There are some fairly simple examples available in the enRoute project. In general things should work as you expect, as long as you use the JAX-RS API, not the Jersey API :) The SSE from JAX-RS 2.1 definitely works (client and server side) with the Aries implementation, so hopefully that will

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
Hi, In the example I'm doing: 1. I'm using the standard http feature (pax web) 2. I'm using javax.ws.rs/java.ws-rs-api bundle 3. I created a feature for Aries JAXRS Whiteboard (that I will contribute to Karaf) providing the contract I'm testing the whiteboard right now. Regards JB On

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've now

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
Pretty much. The OSGi util specifications are self-implementing, so the OSGi version of the JAR contains the spec API and the reference implementation. This dependency list has everything needed to get the JAX-RS Whiteboard running on Java 11 (meaning that there are a few things that you don’t

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
OK, it works directly with the bundle (util.function, util.promise, service.jaxrs). I'm wrapping this in a feature with the requirement (the JAXRS contract) and I'm testing. I keep you posted. Thanks Regards JB On 22/11/2018 18:30, Jean-Baptiste Onofré wrote: > I guess it's the same thing some

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
I guess it's the same thing some org.osgi.util.promise right ? Regards JB On 22/11/2018 18:19, Tim Ward wrote: > That’s part of the JAX-RS Whiteboard spec API. You can find the JAX-RS > Whiteboard spec API as a standalone jar in Maven > Central  >

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
OK thanks, I'm trying with jaxrs bundle directly. I keep you posted. Regards JB On 22/11/2018 18:19, Tim Ward wrote: > That’s part of the JAX-RS Whiteboard spec API. You can find the JAX-RS > Whiteboard spec API as a standalone jar in Maven > Central  >

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
That’s part of the JAX-RS Whiteboard spec API. You can find the JAX-RS Whiteboard spec API as a standalone jar in Maven Central https://mvnrepository.com/artifact/org.osgi/org.osgi.service.jaxrs/1.0.0 The compendium

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 JAX-RS Whiteboard

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. >> >> It will work with Karaf 4.3.x

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

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
When I tested, Aries JAXRS required R7 packages. I will do a new try to reproduce the issue I have. My whiteboard is pretty simple and more generic and doesn't have the pretension to be a full spec implementation: the idea is to bring SCR support in CXF (which is very blueprint focus for now).

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.

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
By the way, you can take a look on: https://issues.apache.org/jira/browse/KARAF-5789 for the Felix HTTP feature (light instead of Pax Web, not recommended). For the Karaf JAXRS Simple Whiteboard, I will share my repo soon. Regards JB On 22/11/2018 17:00, t...@quarendon.net wrote: >> You

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.4, it’s

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Tim Ward
Hi, This is the set of bundles needed to get enRoute apps up and running: https://github.com/osgi/osgi.enroute/blob/7d534c287aa6e3ee9391f815d03ca4f81e480356/examples/quickstart/app/app.bndrun#L11-L25

Re: Aries JAX-RS Whiteboard

2018-11-22 Thread Jean-Baptiste Onofré
Hi 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. Regards

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, where you don’t

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'm wondering whether ultimately it's a