Re: providing basic auth via wadl2java?

2017-08-25 Thread Sergey Beryozkin
I see, makes sense to add a new switch Sergey On 25/08/17 14:52, Shan Syed wrote: I don't have explicit access to the header via the command line wadl2java, nor the maven plugin On Fri, Aug 25, 2017 at 6:24 AM, Sergey Beryozkin wrote: Hi Why can't they be sent as the header ? O

Re: providing basic auth via wadl2java?

2017-08-25 Thread Sergey Beryozkin
Hi Why can't they be sent as the header ? Otherwise I guess one needs to configure the HTTP container somehow for the name and password be extracted out of URI and matched against the BasicAuth module... Sergey On 25/08/17 01:10, Shan Syed wrote: Hey there, I need to generate client code fo

Re: Closing of WebClient and Response objects

2017-08-21 Thread Sergey Beryozkin
osed is throwing the exception because the entityClosed is set to true in readEntity. But In CXF 2.7.7, there is no method call in the getEntity() method , simply it returns the entity public Object getEntity() { return lastEntity != null ? lastEntity : entity; } On Wed, Aug 16,

Re: Closing of WebClient and Response objects

2017-08-17 Thread Sergey Beryozkin
ll in the getEntity() method , simply it returns the entity public Object getEntity() { return lastEntity != null ? lastEntity : entity; } On Wed, Aug 16, 2017 at 1:58 PM, Sergey Beryozkin [via CXF] < ml+s547215n578275...@n5.nabble.com> wrote: Hi, that will need to be measured

Re: Closing of WebClient and Response objects

2017-08-16 Thread Sergey Beryozkin
t method readEntity method is called. After that there is another method call JAXRSUtils.fromRespons which is calling getEntity method On Wed, Aug 16, 2017 at 2:29 PM, Sergey Beryozkin [via CXF] < ml+s547215n5782761...@n5.nabble.com> wrote: So where is readEntity is called from ? On 16/0

Re: Closing of WebClient and Response objects

2017-08-16 Thread Sergey Beryozkin
{ return lastEntity != null ? lastEntity : entity; } On Wed, Aug 16, 2017 at 1:58 PM, Sergey Beryozkin [via CXF] < ml+s547215n578275...@n5.nabble.com> wrote: Hi, that will need to be measured for a concrete flow. I'm still not sure why you are seeing the failure with th

Re: Closing of WebClient and Response objects

2017-08-16 Thread Sergey Beryozkin
there is no method call in the getEntity() method , simply it returns the entity public Object getEntity() { return lastEntity != null ? lastEntity : entity; } On Wed, Aug 16, 2017 at 1:58 PM, Sergey Beryozkin [via CXF] < ml+s547215n578275...@n5.nabble.com> wrote: Hi, that

Re: Closing of WebClient and Response objects

2017-08-16 Thread Sergey Beryozkin
d the response.stream.auto.close=false. Later on , i am not facing the Entity Not available Exception. Is there any impact on the performance when we disabled the flag? On Wed, Aug 16, 2017 at 3:32 AM, Sergey Beryozkin [via CXF] < ml+s547215n578272...@n5.nabble.com> wrote: Hi I

Re: Closing of WebClient and Response objects

2017-08-16 Thread Sergey Beryozkin
null in ResponseBuilder rb from the fromResponse method. Please let me know, what could be the solution to fix this issue? -- View this message in context: http://cxf.547215.n5.nabble.com/Closing-of-WebClient-and-Response-objects-tp5748134p5782716.html Sent from the cxf-user mailing list archive at

Re: Spring boot - serverside - coexisting JAXRS and JAXWS on distinct url's

2017-08-15 Thread Sergey Beryozkin
iven. 2017-08-15 17:29 GMT+02:00 Sergey Beryozkin : I believe the way to do it is to create two SpringVoot applications with one having jaxws properties and another - jaxrs ones. Sergey On 15/08/17 15:58, David Karlsen wrote: I want my co-existing services for JAXRS and JAXWS (e.g. same war)

Re: Spring boot - serverside - coexisting JAXRS and JAXWS on distinct url's

2017-08-15 Thread Sergey Beryozkin
thing like cxf.path=/services,/api Sergey On 15/08/17 16:29, Sergey Beryozkin wrote: I believe the way to do it is to create two SpringVoot applications with one having jaxws properties and another - jaxrs ones. Sergey On 15/08/17 15:58, David Karlsen wrote: I want my co-existing services for JAXRS

Re: Spring boot - serverside - coexisting JAXRS and JAXWS on distinct url's

2017-08-15 Thread Sergey Beryozkin
cxf servlet (and using the same property cxf.path etc) It seems the boot stuff is not really usable if you are to have JAXRS and JAXWS services in the same app with distinct paths? Could they get distinct properties / be able to tie a given set to a given servlet-instance? -- Sergey Beryozkin

Re: CXF 3.8 throwing java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException

2017-08-10 Thread Sergey Beryozkin
this message in context: http://cxf.547215.n5.nabble.com/CXF-3-8-throwing-java-lang-NoClassDefFoundError-javax-ws-rs-client-ClientException-tp5782566p5782594.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: BingPreview: No message body writer has been found

2017-08-10 Thread Sergey Beryozkin
Hi as far as I recall, Jackson provider checks in its isReadable if MediaType is application/json. Have a Pre-Match container request filter which changes content type to application/json if it is a wildcard. Cheers, Sergey On 10/08/17 15:42, Vassilis Virvilis wrote: Hi everybody, I am us

Re: How to enable session management in CXF embedded

2017-07-12 Thread Sergey Beryozkin
Hi Thanks, the remaining piece of the puzzle is probably about wiring in SpringSecurity with the embedded Jetty somehow, probably one needs to register a CXF interceptor which will use SpringSecurity AuthenticationManager/etc Sergey On 12/07/17 01:22, Andrew Dwyer wrote: I had a quick play

Re: JAX-RS SAML Web SSO - Validating SAML Response in OSGi

2017-07-05 Thread Sergey Beryozkin
this message in context: http://cxf.547215.n5.nabble.com/JAX-RS-SAML-Web-SSO-Validating-SAML-Response-in-OSGi-tp5781687.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Issues with logging compressed payloads

2017-07-03 Thread Sergey Beryozkin
Hi The logging interceptors disable showing the binary content by default however at the moment an application/fastinfoset type is not recognized as a binary type. Try setting a 'binaryContentMediaTypes'on the interceptors. Not possible to set them on the feature only on the interceptors Che

Re: DOSGI 2 prefered documentation technique?

2017-06-22 Thread Sergey Beryozkin
t is 3.1.11.. On Wed, Jun 21, 2017 at 4:38 PM, Sergey Beryozkin wrote: It needs to be CXF 3.1.11 - it is used with the latest DOSGi2 release Sergey On 21/06/17 14:37, nino martinez wael wrote: IT does look like the project are using CXF-core 3.0.2 , but 3.1.9 of the swagger cxf module.. woul

Re: DOSGI 2 prefered documentation technique?

2017-06-22 Thread Sergey Beryozkin
So why is the root not found ? I can only imagine Swagger Ui is not installed... Sergey On 22/06/17 13:07, nino martinez wael wrote: Sorry I was wrong it is 3.1.11.. On Wed, Jun 21, 2017 at 4:38 PM, Sergey Beryozkin wrote: It needs to be CXF 3.1.11 - it is used with the latest DOSGi2

Re: data seems corrupt in versions after 3.0.0-milestone

2017-06-22 Thread Sergey Beryozkin
You can try response.readEntity(InputStream.class) and extract the byte[] from it as required. Or if String is expected then try response.readEntity(String.class) The way byte[] is converted in 3.0.0-milestone2 is as follows: https://github.com/apache/cxf/blob/cxf-3.0.0-milestone2/rt/fronten

Re: DOSGI 2 prefered documentation technique?

2017-06-21 Thread Sergey Beryozkin
On Fri, Jun 16, 2017 at 10:38 AM, Sergey Beryozkin wrote: Hi Can you put a breakpoint here: https://github.com/apache/cxf/blob/cxf-3.1.11/rt/rs/descript ion-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/OsgiS waggerUiResolver.java#L38 Cheers, Sergey On 16/06/17 07:13, nino martinez wae

Re: Configure bus and conduit programatically in Spring Boot

2017-06-21 Thread Sergey Beryozkin
Hi I think you will need to have something similar to what I did for JAX-RS: https://github.com/apache/cxf/blob/master/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/JaxRsWebClientConfiguration.java https://github.com/apache/cxf/blob/master/rt/rs/client/src/main/java/org/apache/cx

Re: Possible bug in UriBuilder?

2017-06-21 Thread Sergey Beryozkin
not fix it earlier :-). I have a basic fix coming in now - a cleane solution will be welcomed - UriBuider code may need to be refreshed a bit Thanks, Sergey On 21/06/17 09:40, Sergey Beryozkin wrote: Hi Thanks. As I said, I agree that it most likely needs to be fixed, even though, as far

Re: Possible bug in UriBuilder?

2017-06-21 Thread Sergey Beryozkin
ad "opaque paths" are mentioned (i.e. "mailto:testu...@java.com"; is no longer an opaque URI, but a URI with an opaque --or "non hierarchical"-- path). That does not help much in this case since UriBuilder should cope with the particularities of the current URI im

Re: Possible bug in UriBuilder?

2017-06-20 Thread Sergey Beryozkin
ess CXF UriBuilder impl should support this case... Cheers, Sergey On 20/06/17 03:56, Gary Gregory wrote: Hi Sergey, Can you formulate the issue you are seeing in the form of a failing unit test? Gary On Mon, Jun 19, 2017 at 9:02 AM, Sergey Beryozkin wrote: Hi Aw

Re: Possible bug in UriBuilder?

2017-06-19 Thread Sergey Beryozkin
here. Please let know your opinions about this and, if I'm right, it would be great to get it fixed soon. If something is not clear or you have any questions, I'm willing to answer them. If there's a reason for the current behaviour, or if I am incorrectly interpreting the standard,

Re: Does it possible to exclude resource from logging feature?

2017-06-16 Thread Sergey Beryozkin
ote: Hi! Does it possible to exclude resource from logging feature org.apache.cxf.ext.logging.LoggingFeature ? I do not want some resourse to show request and response logs -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: CXF Client API - Implementing ResponseExceptionMapper on client side for custom exception handling

2017-06-16 Thread Sergey Beryozkin
Hi ResponseExceptionMapper is a CXF specific provider for facilitating the mapping of HTTP errors to *proxy* API specific exceptions. For example, if you have BookInterface#getBook() throws BookNotFounfException, then when you invoke bookInterface.getBook() and the server returns 404, then

Re: DOSGI 2 prefered documentation technique?

2017-06-16 Thread Sergey Beryozkin
does not link to the swagger ui document. BTW it does not work on 2.1.0.. Whats the horizon to release 2.2? On Mon, Apr 24, 2017 at 11:23 AM, Sergey Beryozkin According to https://issues.apache.org/jira/browse/CXF-7347 it is a SwaggerUI 3 refactoring related issue... keep working with Swagger 2 U

Re: CXF 3.0.3 - java.lang.IllegalStateException: Entity is not available on the return from a JAX-RS service

2017-06-15 Thread Sergey Beryozkin
m/CXF-3-0-3-java-lang-IllegalStateException-Entity-is-not-available-on-the-return-from-a-JAX-RS-service-tp5781201p5781222.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: CXF 3.0.3 - java.lang.IllegalStateException: Entity is not available on the return from a JAX-RS service

2017-06-15 Thread Sergey Beryozkin
Hi It can happen is somewhere in the chain Response.close() has been called, can you please investigate further ? Cheers, Sergey On 14/06/17 17:50, nicolasduminil wrote: Hello, A JAX-RS endpoint, working properly in order to perform its processing, is raising the following exception on its re

Re: JAX-RS Client preserve empty slashes

2017-06-14 Thread Sergey Beryozkin
o it looks like the RI is preserving the double slashes when specified in the middle of the path in the initial target call, but not preserving them when multiple individual path methods would end up with double slashes. Thanks, Andy On Tue, Jun 13, 2017 at 10:11 AM, Sergey Beryozki

Re: JAX-RS Client preserve empty slashes

2017-06-13 Thread Sergey Beryozkin
there is an easy way to allow this customer to get the desired behavior with CXF - possibly by adding a client property. Thanks again, Andy On Tue, Jun 13, 2017 at 7:49 AM, Sergey Beryozkin wrote: Hi Andy It is most likely caused by UriBuilder parsing the URI and then dropping the empty

Re: JAX-RS Client preserve empty slashes

2017-06-13 Thread Sergey Beryozkin
Hi Andy It is most likely caused by UriBuilder parsing the URI and then dropping the empty path segments. As far as I recall UriBuilder.path() must guarantee that if we have say .path("a/").path("/b") then the builder should ensure no duplicate "//" appear in the final URI. However I'm not

Re: Thread and memroy leak safety for WebClient initilized through blueprint

2017-06-13 Thread Sergey Beryozkin
Hi Andrei I do expect such a builder-style code be thread safe, however if it is very intensive then you might want to finalize the call with a myWebClient.reset() which will clean the thread local state more proactively, The client factor bean also has a timeToKeepState property but at the

Re: CXF client throwing socketTimeOutException

2017-06-02 Thread Sergey Beryozkin
ssage. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Using OAuth 1.0a with JAX-RS CXF

2017-06-02 Thread Sergey Beryozkin
Hi On 02/06/17 08:28, nicolasduminil wrote: Hi Srgey, Thanks for your help. The 1-leg flow, as far as I understood, consists in the fact that client doesn’t have to ask for tokens (neither request nor access tokens) before accessing protected ressource. Here is an image showing the flow (well, i

Re: Using OAuth 1.0a with JAX-RS CXF

2017-06-01 Thread Sergey Beryozkin
Can you remind me please what is OAuth1.0a leg about anyway ? As far as I recall only a 3-leg flow was completely specified. Perhaps you do not even need any specific utility code for the 1.a 1 leg flow Sergey On 01/06/17 16:55, Sergey Beryozkin wrote: Hi It has been many years since some

Re: Using OAuth 1.0a with JAX-RS CXF

2017-06-01 Thread Sergey Beryozkin
as -- View this message in context: http://cxf.547215.n5.nabble.com/Using-OAuth-1-0a-with-JAX-RS-CXF-tp5780889.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: HTTP 415 raised by JAX-RS service consuming multipart

2017-06-01 Thread Sergey Beryozkin
-JAX-RS-service-consuming-multipart-tp5780784p5780883.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: HTTP 415 raised by JAX-RS service consuming multipart

2017-05-31 Thread Sergey Beryozkin
vice-consuming-multipart-tp5780784p5780874.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: HTTP 415 raised by JAX-RS service consuming multipart

2017-05-31 Thread Sergey Beryozkin
Hi Lets start from the service side. If you expect the service clients posting the recursive parts like the ones shown in the HTML form example, where a single part with a name 'files' contains a variable number of embedded parts, then having a Multipart(name="files") List or Multipart(name="

Re: CXF 3.3.11 issue when used with WebPhere 9.0.0.3

2017-05-31 Thread Sergey Beryozkin
this message in context: http://cxf.547215.n5.nabble.com/CXF-3-3-11-issue-when-used-with-WebPhere-9-0-0-3-tp5780859.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: HTTP 415 raised by JAX-RS service consuming multipart

2017-05-30 Thread Sergey Beryozkin
ly avoid having a List as a single Attachment entity Cheers. Sergey Many thanks, Nicolas DUMINIL -- View this message in context: http://cxf.547215.n5.nabble.com/HTTP-415-raised-by-JAX-RS-service-consuming-multipart-tp5780784p5780829.html Sent from the cxf-user mailing list archive a

Re: HTTP 415 raised by JAX-RS service consuming multipart

2017-05-29 Thread Sergey Beryozkin
context: http://cxf.547215.n5.nabble.com/HTTP-415-raised-by-JAX-RS-service-consuming-multipart-tp5780784p5780818.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: HTTP 415 raised by JAX-RS service consuming multipart

2017-05-29 Thread Sergey Beryozkin
ance, Nicolas -- View this message in context: http://cxf.547215.n5.nabble.com/HTTP-415-raised-by-JAX-RS-service-consuming-multipart-tp5780784.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Removing old Swagger code from the master

2017-05-26 Thread Sergey Beryozkin
Hi CXF integrates with Swagger2 and the original older Swagger. We'd like to remove the old Swagger code on the master only as it does not make much sense to carry it forward. I'm thinking it is quite safe to remove it even from 3.1.x as it appears unlikely that there are still users there who

Re: CXF 3.0.3 - org.apache.cxf.interceptor.Fault: No message body writer has been found for class org.apache.cxf.jaxrs.ext.multipart.MultipartBody, ContentType: multipart/form-data

2017-05-23 Thread Sergey Beryozkin
And I was the one who said that code was just fine :-) Cheers, Sergey On 23/05/17 13:52, nicolasduminil wrote: Sergehei, I feel like a dork. My InputStream was instantiated in a try-with-resource statement while the POST was done outside it, meaning that the stream, which was the resource, was

Re: CXF 3.0.3 - org.apache.cxf.interceptor.Fault: No message body writer has been found for class org.apache.cxf.jaxrs.ext.multipart.MultipartBody, ContentType: multipart/form-data

2017-05-23 Thread Sergey Beryozkin
Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: CXF 3.0.3 - org.apache.cxf.interceptor.Fault: No message body writer has been found for class org.apache.cxf.jaxrs.ext.multipart.MultipartBody, ContentType: multipart/form-data

2017-05-23 Thread Sergey Beryozkin
Hi Perhaps the target server closed the connection after processing the first attachment ? I can not see any issues with the client code. Sergey On 23/05/17 11:09, nicolasduminil wrote: Hi, Apache CXF 3.0.3 comes bundled with WebSphere 9.0.0.3 accordingly I cannot replace the libraries. I co

Re: Getting Full Address of Server?

2017-05-23 Thread Sergey Beryozkin
Hi James, UriInfo.getRequestUri or getAbsolutePath should give the right info at the runtime Sergey On 23/05/17 04:19, James Carman wrote: Is there a way to ascertain the full address of a server created with JAXRSServerFactoryBean? For example, if I only set the address to "/foo", is there an

Re: CXF 3.0.3 - org.apache.cxf.interceptor.Fault: No message body writer has been found for class org.apache.cxf.jaxrs.ext.multipart.MultipartBody, ContentType: multipart/form-data

2017-05-23 Thread Sergey Beryozkin
Hi Nicolas I'm not sure how we can help given that passing a List directly or wrapped into MultipartBody (as confirmed by Dennis) works with the latest CXF. The CXF test I was referring to (putting aside the fact that some tests might use the static resources - I recall for ex I needed to try

Re: CXF 3.0.3 - org.apache.cxf.interceptor.Fault: No message body writer has been found for class org.apache.cxf.jaxrs.ext.multipart.MultipartBody, ContentType: multipart/form-data

2017-05-22 Thread Sergey Beryozkin
Hi I can see a CXF test where a List of Attachment is posted directly without wrapping it in MultipartBody (I expect it to work too). Can you please try to send a List directly ? Will it work for you ? Cheers, Sergey On 22/05/17 16:08, nicolasduminil wrote: Hello, I've seen dozens of posts

Re: Getting Swagger2 Working...

2017-05-13 Thread Sergey Beryozkin
Hi Sometimes, in OSGI, setting a feature 'setScan' to false works better, it is probably should be a default option, in this case CXF registers Application with Swagger thus, even if the scan does not work, Swagger still has all the info... Sergey On 12/05/17 21:03, Carlos Sierra Andrés wrot

Re: Using CXF with Declarative Service

2017-05-13 Thread Sergey Beryozkin
Hi Yes, the annotations can (and very often) are put on the implementation class...May be, if the impl class is proxified, then ther are not visible... By the way, one other option is http://cxf.apache.org/docs/jax-rs-advanced-features.html#JAX-RSAdvancedFeatures-RESTfulserviceswithoutannotation

Re: ContainerRequestFilter not triggered on subresource

2017-05-12 Thread Sergey Beryozkin
Hi Rémi Sure, re-open CXF-7367 if you can indeed find the issue with the CXF code. I think this specific scenario has been TCK tested - though it is possible the TCK coverage has not been great. The easiest way would be to debug as I suggested earlier. Note if you subresource method contains

Re: ContainerRequestFilter not triggered on subresource

2017-05-11 Thread Sergey Beryozkin
Hi I've added the following test confirming it works with CXF: http://git-wip-us.apache.org/repos/asf/cxf/commit/7d866415 Thanks, SErgey On 11/05/17 08:03, Rémi AUBEL wrote: Hi Sergey, For information, I have created issue CXF-7367 . Thanks

Re: Local "Fallback" Support?

2017-05-11 Thread Sergey Beryozkin
more I think about it, I don't know if I like this being a "magic" thing, but more of a regular old pattern. I'm going to tinker a bit. Thanks for following up. On Thu, May 11, 2017 at 5:11 AM Sergey Beryozkin wrote: Hi James What is available is ResponseExceptionMapper whi

Re: Local "Fallback" Support?

2017-05-11 Thread Sergey Beryozkin
Hi James What is available is ResponseExceptionMapper which can be registered as JAX-RS provider and it will convert the exceptions to some custom responses. JAX-RS 2.0 ClientResponseFilter can also be registered with the proxy. Perhaps something else can be improved for proxies, can you expl

Re: ContainerRequestFilter not triggered on subresource

2017-05-09 Thread Sergey Beryozkin
app/nav method def will not be filtered - it is a subresource locator, but the method on the found subresource will have to be filtered - can you confirm please that getNavigationDrawerInfo is filtered ? Thanks, Sergey On 09/05/17 13:28, Sergey Beryozkin wrote: Wait, I'm getting con

Re: ContainerRequestFilter not triggered on subresource

2017-05-09 Thread Sergey Beryozkin
Wait, I'm getting confused now, I'll need to do a test... Sergey On 09/05/17 13:25, Sergey Beryozkin wrote: Np, I think you've found a bug which will need to be addressed Thanks, Sergey On 09/05/17 13:09, Rémi AUBEL wrote: Sorry, while prototyping my code, I've not remo

Re: ContainerRequestFilter not triggered on subresource

2017-05-09 Thread Sergey Beryozkin
essage in context: http://cxf.547215.n5.nabble.com/ContainerRequestFilter-not-triggered-on-subresource-tp5780240p5780319.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: ContainerRequestFilter not triggered on subresource

2017-05-09 Thread Sergey Beryozkin
rchive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: ContainerRequestFilter not triggered on subresource

2017-05-09 Thread Sergey Beryozkin
ge in context: http://cxf.547215.n5.nabble.com/ContainerRequestFilter-not-triggered-on-subresource-tp5780240p5780303.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: [DOSGi] Support for org.apache.cxf.jaxrs.ext.ContextProvider

2017-05-08 Thread Sergey Beryozkin
7215.n5.nabble.com/DOSGi-Support-for-org-apache-cxf-jaxrs-ext-ContextProvider-tp5780279.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Unsupported Media Type even for application/xml

2017-05-08 Thread Sergey Beryozkin
80274.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: ContainerRequestFilter not triggered on subresource

2017-05-08 Thread Sergey Beryozkin
Or prepare a test if you prefer Thanks, Sergey On 08/05/17 13:23, Sergey Beryozkin wrote: Hi Rémi Can you please download CXF 3.1.10 JAXRS code [1] and put a breakpoint at [2] ? I do not see how pre-matching filters can be still executed Thanks, Sergey [1] https://search.maven.org

Re: ContainerRequestFilter not triggered on subresource

2017-05-08 Thread Sergey Beryozkin
Hi Rémi Can you please download CXF 3.1.10 JAXRS code [1] and put a breakpoint at [2] ? I do not see how pre-matching filters can be still executed Thanks, Sergey [1] https://search.maven.org/remotecontent?filepath=org/apache/cxf/cxf-rt-frontend-jaxrs/3.1.10/cxf-rt-frontend-jaxrs-3.1.10-sou

Re: ContainerRequestFilter not triggered on subresource

2017-05-05 Thread Sergey Beryozkin
Hi I've checked the code, the filters should be executed on a subresource locator method. Are you sure these are not PreMatching filters ? Thanks, Sergey On 05/05/17 16:07, Rémi AUBEL wrote: Hi, My application uses CXF 3.1.10 and I use ContainerRequestFilters to manage authentication and aut

Re: FailoverTargetSelector and Thread Safety...

2017-05-03 Thread Sergey Beryozkin
Hi James It depends where it is injected to - if it is collected by the main() initiated flow then it will still be OK. I guess the problems might occur if such clients are expected to fail-over while running in scope of the server flow. Though I'm not sure how critical it is for a client t

Re: CXF - JAXRS issue with UriInfo

2017-04-28 Thread Sergey Beryozkin
Thanks, so there was non need to change from Major to Critical status :-) Cheers, Sergey On 28/04/17 14:35, Nicolas Lenoire wrote: I opened JIRA issues CXF-7351 and CXF-7352 related to the described problems. Thanks, Nicolas Lenoire On 4/28/2017 11:24, Sergey Beryozkin wrote: Hi This

Re: CXF - JAXRS issue with UriInfo

2017-04-28 Thread Sergey Beryozkin
as Lenoire -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Customized Swagger UI in OSGi environment

2017-04-24 Thread Sergey Beryozkin
oordinates, but is clearly a HACK :-S Best Regards, Ivo Leitão -- View this message in context: http://cxf.547215.n5.nabble.com/Customized-Swagger-UI-in-OSGi-environment-tp5779807p5779846.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community C

Re: DOSGI 2 prefered documentation technique?

2017-04-24 Thread Sergey Beryozkin
e cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: JAXBException with CXF 3.0.11 and Jackson 2.8.6

2017-04-19 Thread Sergey Beryozkin
ison if it it tricky to remove it from the classpath too HTH, Sergey On 18/04/17 16:43, Kulbhushan Azad wrote: org.apache.cxf.jaxrs.provider.json.JSONProvider.readFrom(JSONProvider.java:242) thats the provider i see from the Exception stacktrace On Tue, Apr 18, 2017 at 11:32 AM, Sergey Beryoz

Re: JAXBException with CXF 3.0.11 and Jackson 2.8.6

2017-04-18 Thread Sergey Beryozkin
No, not seeing it - how difficult it is to do a bit of an effort and check the trace on your own ? Thanks, Sergey On 18/04/17 16:27, Kulbhushan Azad wrote: attached the screenshot , see if its okay now On Tue, Apr 18, 2017 at 11:09 AM, Sergey Beryozkin mailto:sberyoz...@gmail.com>>

Re: JAXBException with CXF 3.0.11 and Jackson 2.8.6

2017-04-18 Thread Sergey Beryozkin
1 On Tue, Apr 18, 2017 at 9:34 AM, Sergey Beryozkin mailto:sberyoz...@gmail.com>> wrote: Is it reported by JacksonJaxbJsonProvider in response to an application/json payload ? Sergey On 18/04/17 06:33, Kulbhushan Azad wrote: hi i am seeing below error

Re: JAXBException with CXF 3.0.11 and Jackson 2.8.6

2017-04-18 Thread Sergey Beryozkin
rresponding spring configuration: it used to work fine with the CXF 2.7.8 and jackson 1.9.13 Not sure what could be the issue here would appreciate any help or pointers with respect to this -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Can form encoding use JAXB annotations for field name mapping?

2017-04-17 Thread Sergey Beryozkin
That work with the CXF RS client proxies but with the standard API the only way is to use Form or MultivaluedMap Sergey On 14/04/17 22:14, KARR, DAVID wrote: -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Friday, April 14, 2017 11:07 AM To: users

Re: CXF 3.1 + Tomcat 8 + JAR-RS + Atmosphere + WebSocket

2017-04-17 Thread Sergey Beryozkin
Antony If it is still of interest, the CXF WebSocket transport now works with Tomcat 8/9, after Andriy Redko imporved to load a JSR356 implementation if available. Freeman, it should also make this transport usable with Undertow Cheers, Sergey On 05/10/16 15:03, Sergey Beryozkin wrote: Hi

Re: Can form encoding use JAXB annotations for field name mapping?

2017-04-14 Thread Sergey Beryozkin
ng any implicit > mapping specified in @Xml... annotations in my POJO. I could certainly > write the code to do this mapping, but I find it hard to believe this > hasn't been done already. Am I missing something? > -- Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com

Re: Better way to get post response parameters into a POJO?

2017-04-11 Thread Sergey Beryozkin
errorCode(responseForm.asMap() > > > .getFirst("errorCode")). > > > > > errorMessage(responseForm.asMap().getFirst(" > > > errorMessage")); > > > } > > > > >

Re: Better way to get post response parameters into a POJO?

2017-04-11 Thread Sergey Beryozkin
.getFirst(" > errorMessage")); > } > > > Where "CodeAndMessage" is a simple POJO with two fields. > > This works, but I was wondering if there is a cleaner way to do this, to > avoid having to use the Form response and getting the map values. > -- Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com

Re: Multipart body with proxy client

2017-04-07 Thread Sergey Beryozkin
On 04/04/17 21:31, Sergey Beryozkin wrote: Hi Andrei I checked the code, setting the contextual property "support.type.as.multipart" should be enough as long as the type is a built-in type like InputStream. I also can see @Multipart annotations can be added for the input params, bu

Re: How to set a keystore into ClientBuilder that was created in memory from a cert file?

2017-04-06 Thread Sergey Beryozkin
Hi David There must be a way to express all of it with the relevant ClientBuilder setters, the CXF specific way is about working with HttpConduit but I'm not sure it makes much sense to try to write a portable code while using CXF specific way of setting the key/trust stores... If you have no

Re: DOSGI 2 prefered documentation technique?

2017-04-06 Thread Sergey Beryozkin
I know disabling a scan did help some of my colleagues to make it work OSGI... Sergey On 06/04/17 15:44, Sergey Beryozkin wrote: Hi, to be honest, I do not know if it is expected to work with DOSGi2, have a look please at the 'plain' Swagger2 OSGI demo, and debug what Swagger2feati

Re: DOSGI 2 prefered documentation technique?

2017-04-06 Thread Sergey Beryozkin
ption-swagger2 Let me just verify.. On Thu, Apr 6, 2017 at 3:34 PM, Sergey Beryozkin wrote: Yes, sometimes setScan(false) helps Sergey On 06/04/17 14:32, Christian Schneider wrote: I am not very familiar with how Swagger works. Are you sure the scan works like this in OSGi? Can you maybe put

Re: DOSGI 2 prefered documentation technique?

2017-04-06 Thread Sergey Beryozkin
cohesion.com/ [2]http://cxf.apache.org/docs/swagger2feature.html -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com -- Best regards / Med venlig hilsen Nino Martinez -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs

2017-04-06 Thread Sergey Beryozkin
Perhaps that was the test issue, as building the core module passed OK for me Sergey On 06/04/17 00:25, KARR, DAVID wrote: -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Wednesday, April 05, 2017 3:23 PM To: users@cxf.apache.org Subject: Re: Verifying

Re: Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs

2017-04-05 Thread Sergey Beryozkin
- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Wednesday, April 05, 2017 3:09 PM To: users@cxf.apache.org Subject: Re: Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs That should be thread safe too, I don't se

Re: Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs

2017-04-05 Thread Sergey Beryozkin
quot; on that page get a 404. I have a feeling that class is relevant to this. I also don't see this class in the standard Javadoc set. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Verifying threadsafety of cached javax.ws.rs.client.Client implementation with basic auth in CXF & 404 in docs

2017-04-05 Thread Sergey Beryozkin
face, but CXF is providing an implementation, so I would assume it's possible to determine that. I note that links to "JAXRSClientFactoryBean" on that page get a 404. I have a feeling that class is relevant to this. I also don't see this class in the standard J

Re: Multipart body with proxy client

2017-04-04 Thread Sergey Beryozkin
gey On 04/04/17 16:24, Andrei Shakirin wrote: Hi Sergey, Thanks for the answer. Regarding @Multipart method annotation, is there any way to initiate generation of this annotation through the WADL? (project uses WADL fist approach) Regards, Andrei. -Original Message----- From: Sergey

Re: Multipart body with proxy client

2017-04-04 Thread Sergey Beryozkin
10-29f1-4125-848e-dc9230887d45". For CXF 3.1.7 code works without problems if we use Client API to read set of attachments. Do you have any ideas why it works differently? It is not a big issue, because WebClient / Client API works - anyway interesting to understand the difference. Regard

Re: Rest default request encoding and logging

2017-03-29 Thread Sergey Beryozkin
Hi Can you set a 'charset' Content-Type parameter ? Thanks, Sergey On 29/03/17 05:40, Vjacheslav V. Borisov wrote: Hi! Currently cxf (3.1.10) runtime sets default message encoding, if not specified by client, to ISO-8859-1 String encoding = (String)message.get(Message.ENCODING);

Re: How to transprot by HttpClient

2017-03-29 Thread Sergey Beryozkin
I do not understand this question. In general one will use CXF JAX-WS or -RS client API but can request that HttpClient is used internally to do the sync calls. Sergey On 29/03/17 02:07, cctv092 wrote: Thanks for your replay! I see http://cxf.apache.org/docs/asynchronous-client-http-transport

Re: How to transprot by HttpClient

2017-03-28 Thread Sergey Beryozkin
ClassNotFoundException: org.springframework.boot.context.embedded.ServletRegistrationBean error. 3.2.0-SNAPSHOT fixes the error. Thanks -Sonam -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Tuesday, March 28, 2017 3:31 AM To: users@cxf.apache.org Subject: Re: How to transprot

Re: How to transprot by HttpClient

2017-03-28 Thread Sergey Beryozkin
Hi One needs to set a "use.async.http.conduit" JAXWS or JAXRS property to use it for the sync calls. See also http://cxf.apache.org/docs/asynchronous-client-http-transport.html Sergey On 27/03/17 07:29, cctv092 wrote: Hi all, As we know, cxf uses a transport based on the in-JDK HttpURL

Re: DOSGI 2, switching to jackson

2017-03-23 Thread Sergey Beryozkin
Hi The easiest way to deal with it is uninstall the jettison bundle. A bus property "skip.default.json.provider.registration" is also available where the CXF JAXRS provider factory will ignore even if it is available on the classpath. As far as JAX-RS 2.0 selection of the providers is concern

Re: wadl2java classloading issue in Jenkins

2017-03-23 Thread Sergey Beryozkin
Hi Andrei I think it is the consequence of JAXRSUtils growing too large over a number of years, I'd say it is the Servlet API imports that cause the issue in an eagerly loading JVM when no Servlet API is available on the classpath. I believe at some point JAXRSUtils was not referring strongl

<    1   2   3   4   5   6   7   8   9   10   >