Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Sergey Beryozkin
I'm actually not sure, Dan may know; Can you experiment with increasing a Spring version ? Sergey On 14/05/15 09:59, Maxim Solodovnik wrote: Hello Sergey! Thanks for the answer is there any workaround for this issue? On Thu, May 14, 2015 at 2:48 PM, Sergey Beryozkin wrote: Hi M

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Sergey Beryozkin
Hi Max I looked at the code yesterday, saw that EndpointImpl ships its own List implementation with Collection.retainAll not supported; I wonder if it still needs to implemented as it appears some consumer of this List does prefer to use retainAll() as an alternative to a sequence of Collectio

Re: Auto generation of WADL

2015-05-10 Thread Sergey Beryozkin
Please see this test for more information: https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/rs/description/src/test/java/org/apache/cxf/jaxrs/model/wadl/WadlGeneratorJsonTest.java;h=cf368062059d21624cab45bd7614c6789c02f41e;hb=HEAD A JAXB generation needs to be disabled and the exter

Re: Issues with WADL - Apache CXF JAX-RS

2015-05-08 Thread Sergey Beryozkin
ould you please suggest the changes to the generated WADL so that we can automatically create REST requests using SOAP-UI like tool. Thanks, Satyajit -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com

Re: No message body writer has been found for class java.util.HashMap

2015-05-08 Thread Sergey Beryozkin
runtime. What is the criteria for preference ? On Thu, May 7, 2015 at 6:11 PM, Sergey Beryozkin [via CXF] < ml-node+s547215n5757122...@n5.nabble.com> wrote: On 07/05/15 09:52, sanmitra wrote: Question 1) To serialize my domain object containing a hashmap, I am

Re: No message body writer has been found for class java.util.HashMap

2015-05-07 Thread Sergey Beryozkin
On 07/05/15 09:52, sanmitra wrote: Question 1) To serialize my domain object containing a hashmap, I am using org.apache.cxf.jaxrs.provider.json.JSONProvider but getting this error "No message body writer has been found for class java.util.HashMap, ContentType: application/json". How can I fix th

Re: Webclient to local endpoint loses SecurityContext

2015-05-06 Thread Sergey Beryozkin
s on the security worker SecurityUser securityUser = securityWorker .lookupSecurityUser(messageContext.getSecurityContext()); My application config below. http://cxf.apache.org/transports/local";>

Re: Auto generation of WADL

2015-05-06 Thread Sergey Beryozkin
Does it not work for you ? Let me know please what exactly are you interested in Cheers, Sergey On 06/05/15 05:05, las wrote: Could you please elaborate a bit more? -- View this message in context: http://cxf.547215.n5.nabble.com/Auto-generation-of-WADL-tp5756919p5757041.html Sent from the

Re: Does not follow spec? throw ProcessingException if an invocation processing failure

2015-05-05 Thread Sergey Beryozkin
: http://cxf.547215.n5.nabble.com/Does-not-follow-spec-throw-ProcessingException-if-an-invocation-processing-failure-tp5756972p5757024.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http

Re: Does not follow spec? throw ProcessingException if an invocation processing failure

2015-05-05 Thread Sergey Beryozkin
Hi - what CXF version is it ? Sergey On 05/05/15 13:45, ellen wrote: Hi Sergey, Thanks for quickly follow up. BTW, in my sample test code, if I change the buildPost to buildGet: Invocation invocation = builder.buildGet(); I cannot get the Exception and the thread will hang and java process w

Re: Does not follow spec? throw ProcessingException if an invocation processing failure

2015-05-05 Thread Sergey Beryozkin
CXF-6252 is simpler, in this case a bit more work is needed I'll have a look Cheers, Sergey On 05/05/15 12:04, Sergey Beryozkin wrote: Hi What version are you testing ? I think this issue has been fixed as part of https://issues.apache.org/jira/browse/CXF-6252 and the test should pass

Re: Does not follow spec? throw ProcessingException if an invocation processing failure

2015-05-05 Thread Sergey Beryozkin
-invocation-processing-failure-tp5756972.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com

Re: Aw: Re: Re: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-05-04 Thread Sergey Beryozkin
ds). Thanks Sergey On 30/04/15 11:36, Veit Guna wrote: Hi Sergey. I've tried the Jersey Client (2.16) with the testcase - and it seems to work fine! No duplicate requests on the server side. Regards, Veit Gesendet: Dienstag, 28. April 2015 um 13:07 Uhr Von: "Sergey Beryozkin

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-05-04 Thread Sergey Beryozkin
to CXF 3.1.0-SNAPSHOT, waiting for upcoming release(s): all tests are green, cool :-) Regards. On 30/04/2015 14:45, Sergey Beryozkin wrote: One thing is that AbstractPolicyTO is abstract, so may that is causing a problem... Thanks, Sergey On 30/04/15 13:32, Sergey Beryozkin wrote: Hi Franc

Re: Auto generation of WADL

2015-05-03 Thread Sergey Beryozkin
have added cxf-rt-rs-service-description dependency as well. -- View this message in context: http://cxf.547215.n5.nabble.com/Auto-generation-of-WADL-tp5756919.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talen

Re: AW: AW: AW: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-30 Thread Sergey Beryozkin
his happens. I still get a 404 on http://server:port/appcontext/rest/Styles/default.css. :-/ Thank you and best regards, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Mittwoch, 29. April 2015 13:46 An: users@cxf.apache.org Betreff: Re: AW:

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-30 Thread Sergey Beryozkin
One thing is that AbstractPolicyTO is abstract, so may that is causing a problem... Thanks, Sergey On 30/04/15 13:32, Sergey Beryozkin wrote: Hi Francesco, PolicyServiceImpl is the first one that causes issues. I've added only PolicyServiceImpl, this is a list of classes that JAXBConte

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-30 Thread Sergey Beryozkin
hat it is not a CXF issue... Can you please have a look at those 4 classes ? May be do a JAXBContext creation from them in a unit test ? I guess I might also configure the cargo plugin to pass a JAXB debug property, not sure how though :-) Thanks, Sergey On 30/04/15 11:43, Sergey Beryozkin

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-30 Thread Sergey Beryozkin
Indeed, can see it too with a single UserServiceImpl bean. Going to narrow down now Sergey On 30/04/15 09:53, Francesco Chicchiriccò wrote: On 30/04/2015 10:46, Sergey Beryozkin wrote: Hi Francesco, np, I did not have a chance to test yesterday too, thanks for a test on your end, I

Re: Aw: Re: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-30 Thread Sergey Beryozkin
duplicate requests on the server side. Regards, Veit Gesendet: Dienstag, 28. April 2015 um 13:07 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load Hi Thanks for preparing this test, appe

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-30 Thread Sergey Beryozkin
HI Francesco - I'll check on my end too - may be a CXF issue still Sergey On 30/04/15 09:53, Francesco Chicchiriccò wrote: On 30/04/2015 10:46, Sergey Beryozkin wrote: Hi Francesco, np, I did not have a chance to test yesterday too, thanks for a test on your end, I suspect a new type has

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-30 Thread Sergey Beryozkin
Context.xml Konsole output + + + e.g. configuring the sole UserService: I confirm it works, as in your case. Any hint of what I am doing wrong? Thanks. Regards. On 29/04/2015 18:48, Sergey Beryozkin wrote: I've built the master branch, will be looking the first thing tomorrow

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-29 Thread Sergey Beryozkin
I've built the master branch, will be looking the first thing tomorrow morning, should have time before a release... Thanks, Sergey On 29/04/15 15:08, Francesco Chicchiriccò wrote: On 29/04/2015 15:57, Sergey Beryozkin wrote: Hi Francesco I've done a local test by copying U

Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-29 Thread Sergey Beryozkin
de. Thanks, Sergey On 29/04/15 12:25, Sergey Beryozkin wrote: Hi Veit I've checked AsyncHttpConduit, it creates CloseableHttpClient. I do not see it being cached, CXF does not call on CloseableHttpClient, I wonder if it should, even though it is auto-closeable, I'll have to ask Dan ab

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-29 Thread Sergey Beryozkin
nd isolate where the problem is, example, does it get generated for your env if only UserServiceImpl rest service is registered ? By the way I thought you had WADL prepared during a build time ? Thanks, Sergey On 29/04/15 13:30, Sergey Beryozkin wrote: Hi Francesco I wonder if it is relat

Re: Does CXF support percent encoded values on ApplicationPath

2015-04-29 Thread Sergey Beryozkin
cationPath*!*/Resource/ HTTP/1.1, one receive 404 page not found error. I'm not sure if CXF support decode %? Thanks a lot! :) -- View this message in context: http://cxf.547215.n5.nabble.com/Does-CXF-support-percent-encoded-values-on-ApplicationPath-tp5756693.html Sent from the cxf-

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-29 Thread Sergey Beryozkin
Hi Francesco I wonder if it is related somehow to https://fisheye6.atlassian.com/changelog/cxf?cs=300ace67c507c551b37ba4d99e6863b67bf871f8 I did few days back. Though I'm not immediately seeing how. I'll have a look shortly, will try to reproduce with a simlplified version of https://github.

Re: AW: AW: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-29 Thread Sergey Beryozkin
np, thanks for experimenting with the redirection code :-) Let me know please if it works Sergey On 29/04/15 12:43, Voss, Marko wrote: Thank you Sergey, I will test this as soon as I can continue working on this again. :) Cheers, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin

Re: AW: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-29 Thread Sergey Beryozkin
latter option is limited... HTH, Sergey On 29/04/15 12:22, Sergey Beryozkin wrote: LOL, it has 3 such servlet declarations, not 2. I'm confused :-) Still the examples are straightforward IMHO. Check the example showing a redirect for all the html pages... Sergey On 29/04/15 12:18, Sergey Bery

Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-29 Thread Sergey Beryozkin
m 17:32 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load Just a quick note that to close a proxy you need to cast to Client first with a WebClient helper, and then close it... Cheers,

Re: AW: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-29 Thread Sergey Beryozkin
LOL, it has 3 such servlet declarations, not 2. I'm confused :-) Still the examples are straightforward IMHO. Check the example showing a redirect for all the html pages... Sergey On 29/04/15 12:18, Sergey Beryozkin wrote: Well, I've mentioned which servlet parameters need to be ch

Re: AW: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-29 Thread Sergey Beryozkin
they? This is confusing for me... -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Mittwoch, 29. April 2015 12:28 An: users@cxf.apache.org Betreff: Re: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet Hi Mark

Re: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-29 Thread Sergey Beryozkin
card URL pattern for CXFServlet because it obviously catches all the requests... Cheers, Sergey Thank you very much. Best regards, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Donnerstag, 23. April 2015 13:55 An: users@cxf.apache.org

Re: Aw: Re: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-28 Thread Sergey Beryozkin
Just a quick note that to close a proxy you need to cast to Client first with a WebClient helper, and then close it... Cheers, Sergey On 28/04/15 16:30, Sergey Beryozkin wrote: Hi Veit On 28/04/15 16:21, Veit Guna wrote: Hi Sergery. On first sight, it seems to work with the HttpClient

Re: Aw: Re: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-28 Thread Sergey Beryozkin
then you can try Jersey client... Cheers, Sergey Thanks Veit Gesendet: Dienstag, 28. April 2015 um 13:45 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load If it works with Jersey C

Re: Aw: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-28 Thread Sergey Beryozkin
12:07, Sergey Beryozkin wrote: Hi Thanks for preparing this test, appears to be that using HttpClient resolves it. So I've updated pom.xml: org.apache.cxf cxf-rt-transports-http-hc 3.0.4 test and added this line to LoadTest(), immediately after creating a

Re: Aw: Re: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-28 Thread Sergey Beryozkin
7;ll see what I mean. Funny thing: if I enable CXF logging, the tests are green :). Maybe has something TODO with timing. The war does not perform any authentication. It would be nice, If you could try the "async transport" by yourself ;). Thanks Veit Gesendet: Montag, 27. April 2015

Re: The logic of Response getAllLinks method is not good?

2015-04-28 Thread Sergey Beryozkin
One more option "/post" ? So is it "post", "../post", or "/post" ? Sergey On 28/04/15 10:26, Sergey Beryozkin wrote: Hi Thanks for this analysis, I'm looking at the docs, example https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/javax/ws/r

Re: The logic of Response getAllLinks method is not good?

2015-04-28 Thread Sergey Beryozkin
Hi Thanks for this analysis, I'm looking at the docs, example https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/javax/ws/rs/core/Response.html#getLink(java.lang.String) it says: "A relative link is resolved with respect to the actual request URI that produced this response". What is the

Re: Aw: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-27 Thread Sergey Beryozkin
bean, "use.async.http.conduit" - true. And rerun the test. If you create a test that fails consistently then I can do the above check with the async transport myself Thanks, Sergey Regards, Veit Gesendet: Montag, 27. April 2015 um 17:55 Uhr Von: "Sergey Beryozkin"

Re: Aw: Re: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-27 Thread Sergey Beryozkin
/15 16:52, Veit Guna wrote: Sure, but I can't find a suitable ctor on JAXRSClientFactory for specifiying threadSafety AND username/password. Could you give me a hint :)? Thanks. Gesendet: Montag, 27. April 2015 um 17:34 Uhr Von: "Sergey Beryozkin" An: users@cxf.apache.org Betr

Re: Aw: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-27 Thread Sergey Beryozkin
xception due to duplicate UUIDs). That means, that if you have 2 invocations on a proxy, and the 2nd returns an Exception (e.g. NotFound) , it seems to send one of the requests again to the server. Can you confirm that behavior? Thanks Veit Gesendet: Montag, 27. April 2015 um 13:25 U

Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-27 Thread Sergey Beryozkin
And do you create a proxy with a thread safe flag enabled ? Cheers, Sergey On 27/04/15 12:25, Sergey Beryozkin wrote: Hi So even though the client proxy calls delete() only once you still see a DELETE request coming twice to the server. The initial question: Do you observe it for delete() only

Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-27 Thread Sergey Beryozkin
Hi So even though the client proxy calls delete() only once you still see a DELETE request coming twice to the server. The initial question: Do you observe it for delete() only ? Thanks, Sergey On 27/04/15 11:28, Veit Guna wrote: Hi. I'm using Apache CXF 3.0.4 in client JAX-RS proxy mode

Re: WADL Grammar section lost for generic service class.

2015-04-26 Thread Sergey Beryozkin
b, and is more flexible if you ever might need XML support, in today's more JSON oriented world it feels like noise. Again, thank you very much for your help! Jason On Fri, Apr 24, 2015 at 10:59 AM, Sergey Beryozkin [via CXF] < ml-node+s547215n5756525...@n5.nabble.com> wrote: Hi I'

Re: WADL Grammar section lost for generic service class.

2015-04-24 Thread Sergey Beryozkin
Hi I've updated a bit the WADLGenerator code and added a test, should all work as expected now. Can you please try the snapshots ? Note I've only merged to 3.0.5-SNAPSHOT and 3.1.0-SNAPSHOT. Do you need it for CXF 2.7.x ? Thanks, Sergey On 22/04/15 11:08, Sergey Beryozkin wrote:

Re: Using @BeanParam

2015-04-24 Thread Sergey Beryozkin
Hi Francesco On 24/04/15 07:39, Francesco Chicchiriccò wrote: On 23/04/2015 18:04, Sergey Beryozkin wrote: Hi On 23/04/15 15:42, Francesco Chicchiriccò wrote: On 23/04/2015 15:03, Sergey Beryozkin wrote: Hi Francesco, Did a basic update of the client proxy code to check BeanParam fields so

Re: Using @BeanParam

2015-04-23 Thread Sergey Beryozkin
Hi On 23/04/15 15:42, Francesco Chicchiriccò wrote: On 23/04/2015 15:03, Sergey Beryozkin wrote: Hi Francesco, Did a basic update of the client proxy code to check BeanParam fields so having annotations on fields should work in 3.0.5. I've pulled latest changes, build 3.0.5-SNAPSHOT

Re: JSON Payload validation example

2015-04-23 Thread Sergey Beryozkin
If it is JAX-RS: you can configure CXF JSONProvider to do the validation. You may also be able to do a validation with Jackson and JSON Schema but I'm not sure if it is possible - please ask at the Jackson list... Cheers, Sergey On 23/04/15 15:30, venkatesham nalla wrote: Hi, Is there anywa

Re: Using @BeanParam

2015-04-23 Thread Sergey Beryozkin
Hi Francesco, Did a basic update of the client proxy code to check BeanParam fields so having annotations on fields should work in 3.0.5. Sergey On 23/04/15 13:17, Sergey Beryozkin wrote: Hi, I've checked the code, right now only annotations on the BeanParam bean setters are recogniz

Re: Using @BeanParam

2015-04-23 Thread Sergey Beryozkin
Hi On 23/04/15 13:21, Francesco Chicchiriccò wrote: On 23/04/2015 14:17, Sergey Beryozkin wrote: Hi, I've checked the code, right now only annotations on the BeanParam bean setters are recognized on the client side so if you move them from fields to setters then it will work. I believe

Re: Using @BeanParam

2015-04-23 Thread Sergey Beryozkin
Hi, I've checked the code, right now only annotations on the BeanParam bean setters are recognized on the client side so if you move them from fields to setters then it will work. I believe I did fix the server side code awhile back to check BeanParam bean fields too but haven't updated the c

Re: @Path with regex not working correctly on client side

2015-04-23 Thread Sergey Beryozkin
on. Can you try and make a simpler regular expression as a workaround for now ? I will investigate in meantime and see how a more complex expression with "/" cam also be supported Thanks, Sergey On 23/04/15 12:45, Sergey Beryozkin wrote: Hi Indeed having the regular expression encoded i

Re: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-23 Thread Sergey Beryozkin
Hi Marko On 23/04/15 07:48, Voss, Marko wrote: Hi Sergey, I am running into a different issue with this. The forwarding calls a JSP, which requires a stylesheet. The JAXRS service, which is performing the forwarding is located at: /appcontext/rest/service The JSP is located at: /appcontext

Re: @Path with regex not working correctly on client side

2015-04-23 Thread Sergey Beryozkin
Hi Indeed having the regular expression encoded is wrong. See it is all delegated to a UriBuilder and doing URI newUri = new UriBuilder.fromUri("http://bar";).path("{repositoryEntryId : .+(? does not produce "http://bar/1"; I've actually never seen such an example where a builder is initia

Re: [JAX-RS] Matrix parameters and method matching

2015-04-23 Thread Sergey Beryozkin
Hi On 23/04/15 11:47, Francesco Chicchiriccò wrote: On 23/04/2015 12:40, Sergey Beryozkin wrote: [...] Thanks Sergey, I confirm that this workaround works like a charm: I'll be waiting for the outcomes of your analysis, but I might even embed the "/" encoding into the "

Re: [JAX-RS] Matrix parameters and method matching

2015-04-23 Thread Sergey Beryozkin
Hi Francesco, On 23/04/15 11:18, Francesco Chicchiriccò wrote: On 23/04/2015 11:52, Sergey Beryozkin wrote: Hi, On 23/04/15 09:20, Francesco Chicchiriccò wrote: On 22/04/2015 17:28, Sergey Beryozkin wrote: Hi I've done some basic local test and I expect it to work, can you give me a bit

Re: [JAX-RS] Matrix parameters and method matching

2015-04-23 Thread Sergey Beryozkin
Hi, On 23/04/15 09:20, Francesco Chicchiriccò wrote: On 22/04/2015 17:28, Sergey Beryozkin wrote: Hi I've done some basic local test and I expect it to work, can you give me a bit more information: - request URI example, does it end with something like "/users;realm=a" or &

Re: [JAX-RS] Matrix parameters and method matching

2015-04-22 Thread Sergey Beryozkin
also show what path is matched against a given resource method's path. Can you please check ? Thanks, Sergey On 22/04/15 15:05, Francesco Chicchiriccò wrote: On 22/04/2015 14:13, Francesco Chicchiriccò wrote: On 22/04/2015 14:09, Sergey Beryozkin wrote: Hi Francesco Actually, you said two Cla

Re: [JAX-RS] Matrix parameters and method matching

2015-04-22 Thread Sergey Beryozkin
Hi Francesco Actually, you said two ClassResourceInfo candidates have been checked ? One is UserService, what is the other one (and what Path does it have ?) Thanks, Sergey On 22/04/15 12:37, Sergey Beryozkin wrote: Hi On 22/04/15 12:20, Francesco Chicchiriccò wrote: On 22/04/2015 12:48

Re: [JAX-RS] Matrix parameters and method matching

2015-04-22 Thread Sergey Beryozkin
Hi On 22/04/15 12:20, Francesco Chicchiriccò wrote: On 22/04/2015 12:48, Sergey Beryozkin wrote: Hi Francesco I suppose the problem lies somewhere starting from https://github.com/apache/syncope/blob/master/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf

Re: [JAX-RS] Matrix parameters and method matching

2015-04-22 Thread Sergey Beryozkin
Hi Francesco I suppose the problem lies somewhere starting from https://github.com/apache/syncope/blob/master/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/QueryResourceInfoComparator.java#L77 It is a custom implementation and I guess the rating becomes problematic when both que

Re: WADL Grammar section lost for generic service class.

2015-04-22 Thread Sergey Beryozkin
OK, may be something to do with figuring out what T is in List, I thought it was all working fine after Francesco submitted few issues to do with the WADL auto-generation awhile back. I'll try to have a look before 3.0.5 gets out but I'm not sure yet I'll have time - I'll investigate either way

Re: JAX-RS How to manage the session/cookies in JAXRSClientFactory ?

2015-04-22 Thread Sergey Beryozkin
Hi Sure, CXF specific and HTTP centric options are available, The CXF approach is to register a property, org.apache.cxf.message.Message.MAINTAIN_SESSION, example, WebClient.getConfig(client).getRequestContext().put(Message.MAINTAIN_SESSION, true); otherwise write a code that gets a JAX-RS R

Re: jaxrs with angularjs file upload question

2015-04-21 Thread Sergey Beryozkin
;) Public class JaxRsApiApplication extends Application{ } Thanks -Sonam -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Friday, April 17, 2015 3:32 AM To: users@cxf.apache.org Subject: Re: jaxrs with angularjs file upload question Hi One relevant info is her

Re: Does CXF support using @Namebinding on Application

2015-04-21 Thread Sergey Beryozkin
Hi See http://git-wip-us.apache.org/repos/asf/cxf/commit/22bc02ff The test works in CXF 3.0.5-SNAPSHOT. I do not recall right now if I did some relevant fix for 3.0.4 or not. Can you please try CXF 3.0.4 ? If it still does not work - can you create a test case for me ? Thanks, Sergey

Re: WADL Grammar section lost for generic service class.

2015-04-21 Thread Sergey Beryozkin
Hi Sorry for a delay. It appears the grammar is not generated because you have "application/json" - set a WADLGenerator "linkAnyMediaTypeToXmlSchema" property. That should do it... Cheers, Sergey On 09/04/15 22:28, namdets wrote: Additionally, the workaround of overriding the resource meth

Re: Does CXF support using @Namebinding on Application

2015-04-20 Thread Sergey Beryozkin
Hi - Is it CXF 2.7.x (2.7.15 may be) ? In CXF 2.7.x Writer or ReaderInterceptor can not be bound statically with NameBinding, ContainerRequest/Response filters can be. All the interceptors/filters can be bound OK in CXF 3.0.x. Thanks, Sergey -- View this message in context: http://cxf.547

Re: CXF 3.0.4 client - how to disable CN checking

2015-04-20 Thread Sergey Beryozkin
So - please do ClientBuilder.build(), set a verifier only, and test (we thought you probably have a 'plain' HTTP server running locally). If it still does not work - please provide a maven based project Sergey On 20/04/15 15:10, Sergey Beryozkin wrote: On 20/04/15 14:34, smq w

Re: CXF 3.0.4 client - how to disable CN checking

2015-04-20 Thread Sergey Beryozkin
plain HTTPS server... On 20/04/15 15:18, Sergey Beryozkin wrote: So - please do ClientBuilder.build(), set a verifier only, and test (we thought you probably have a 'plain' HTTP server running locally). If it still does not work - please provide a maven based project Sergey On 20/0

Re: CXF 3.0.4 client - how to disable CN checking

2015-04-20 Thread Sergey Beryozkin
On 20/04/15 14:34, smq wrote: The differences I can see: - you are calling ClientBuilder.build() - in my CXF3.0.4, ClientBuilder does not have build() method, so I am using newClient() I'm not calling a static .build() method, I'm calling it on a ClientBuilder instance - you are setting key

Re: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-20 Thread Sergey Beryozkin
not work the first time. Maybe I really put the @Context in the implementation instead of the interface... I do not remember. :-) Have a nice day Sergey and thank you for your continuous help! Best regards, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz

Re: Format of Date Field changed after apache cxf and wildfly upgradation

2015-04-19 Thread Sergey Beryozkin
What API is it, JAX-WS or JAX-RS ? Sergey On 17/04/15 13:01, Ashwini Kondapalli wrote: Issue Description: • The date format in the API response has changed, after the CXF and Wildfly upgrade. • This issue is affecting all date fields in the response from the API. Approaches Tried:

Re: CXF 3.0.4 client - how to disable CN checking

2015-04-17 Thread Sergey Beryozkin
I have this test: https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRS20HttpsBookTest.java;h=818749cf01186d905932e763849471baec407421;hb=HEAD If I remove the line where the hostname verifier is registered I get an er

Re: jaxrs with angularjs file upload question

2015-04-17 Thread Sergey Beryozkin
Hi One relevant info is here: [2015-04-16 10:30:29,681] WARN LogUtils 452 doLog - Interceptor for {http://user.jaxrs.webservice.note.sonam.com/}UserImages has thrown exception, unwinding now java.lang.NullPointerException at org.apache.cxf.attachment.AttachmentUtil.getHeader(AttachmentU

Re: jaxrs with angularjs file upload question

2015-04-16 Thread Sergey Beryozkin
81] WARN LogUtils 452 doLog - Interceptor for {http://user.jaxrs.webservice.note.sonam.com/}UserImages has thrown exception, unwinding now java.lang.NullPointerException at org.apache.cxf.attachment.AttachmentUtil.getHeader(AttachmentUtil.java:306) thanks for any hints or suggestions I can follow. -Sonam -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com

Re: jaxrs cxf deployment issues on weblogic 12c

2015-04-14 Thread Sergey Beryozkin
Well, I've no experience with WebLogic at all :-) Thanks for the information, I've added a link to your last message Thanks, Sergey On 13/04/15 22:19, bajajyo wrote: Below is the way to resolve this issue in weblogic 12c and cxf 3.x and jax-rs 2.x Add below entries in weblogic ap

Re: Socket issues with 2.6.1 and JDK 7

2015-04-13 Thread Sergey Beryozkin
Hi Thanks for this analysis. CXF 2.6.x is not supported any longer but CXF 2.7.x still is, It is a bit late so I only checked the trunk (CXF 3.1.0-SNAPSHOT), can you please check URLConnectionHttpConduit.getInputStream() ? It appears to be doing the right code In CXF 2.7.x this method is pr

Re: CXF 3.0.4 client - how to disable CN checking

2015-04-13 Thread Sergey Beryozkin
You also use ClientBuilderImpl.newClient(); Impl is not needed, but besides that you need to do: ClientBuilder builder = ClientBuilder.newBuilder(); and then set builder properties and create a client Cheers, Sergey On 13/04/15 21:57, Sergey Beryozkin wrote: You do not use it correctly

Re: CXF 3.0.4 client - how to disable CN checking

2015-04-13 Thread Sergey Beryozkin
You do not use it correctly though, HttpUrlConnection.setDefaultHostnameVerifier is not part of JAX-RS 2.0 API. Can you set a verifier on ClientBuilder ? That should do it... Cheers, Sergey On 13/04/15 17:44, smq wrote: The links to the example code all point to pre-CXF3.0 client. I am us

Re: Response headers with multiple value

2015-04-13 Thread Sergey Beryozkin
Hi See https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/javax/ws/rs/core/Response.html#getHeaders() It says that on the client side it is identical to getStringHeaders(), where a header with multiple values is concatenated. In some cases a single values may have commas, CXF was splitting

Re: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-09 Thread Sergey Beryozkin
ue? Best regards, Marko -Ursprüngliche Nachricht----- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Donnerstag, 9. April 2015 11:40 An: users@cxf.apache.org Betreff: Re: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet Hi, sure, it is done, what I

Re: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-09 Thread Sergey Beryozkin
ot be castet to the ThreadLocalHttpServletRequest of CXF, which makes sense. Does this change the issue? Best regards, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Donnerstag, 9. April 2015 11:40 An: users@cxf.apache.org Betreff: Re: AW

Re: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-09 Thread Sergey Beryozkin
- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Mittwoch, 8. April 2015 18:59 An: users@cxf.apache.org Betreff: Re: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet Hi Marko See https://issues.apache.org/jira/browse/CXF-6337 Can you please

Re: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-08 Thread Sergey Beryozkin
Hi Marko See https://issues.apache.org/jira/browse/CXF-6337 Can you please test either 3.0.5-SNAPSHOT or 3.1.0-SNAPSHOT ? Do you need it for CXF 2.7.16 ? Sergey On 08/04/15 13:31, Sergey Beryozkin wrote: Hi Marko That should be possible to get fixed. As I said, the query parameters are

Re: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-08 Thread Sergey Beryozkin
ery parameters added to the JSP URL in some cases... Thanks and best regards, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Mittwoch, 8. April 2015 13:03 An: users@cxf.apache.org Betreff: Re: AW: How to forward requests to a JSP page when usi

Re: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-08 Thread Sergey Beryozkin
e Response Entity for redirection? Just saw, that there are also query parameters added to the JSP URL in some cases... Thanks and best regards, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Mittwoch, 8. April 2015 13:03 An: users@cxf.

Re: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-08 Thread Sergey Beryozkin
(resource.Status.JSP1=/hello.jsp resource.Status.JSP2=/foo.jsp) The Response object gets the enum value as its entity. Is this correct? Thank you very much and best regards, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Dienstag, 7. April

Re: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet

2015-04-07 Thread Sergey Beryozkin
Hi, Please see comments below On 07/04/15 14:42, Voss, Marko wrote: Hello, I do have the following situation: We have to use the CXFNonSpringJaxrsServlet for implementing the REST endpoints. The main servlet (old code to be replaced by the new REST endpoints) of the application does implemen

Re: Camel CXF HTTPS http:tlsClientParameters not attaching

2015-04-03 Thread Sergey Beryozkin
I vaguely recall CXF 2.7.0 RS client was not capable of loading a bus on which this conduit was configured (with the client created in the same context as in your case), that might explain why it does not work Try creating a client from the code, and before that create a SpringBus from a conte

Re: How to get each org.apache.cxf.endpoint.Server?

2015-04-02 Thread Sergey Beryozkin
up cxf jaxrs with CXFServlet with the following configuration: cxf org.apache.cxf.transport.servlet.CXFServlet config-location /WEB-INF/cxf.xml 1 My question is how do I get each org.apache.cxf.endpoint.Server by their id after cxf is started up? Rice -- Sergey Beryozkin Talend Community

Re: Help with Failed to validate token: java.lang.NullPointerException`

2015-04-01 Thread Sergey Beryozkin
Hi Colm is off for the next few days, he can help once he is back Sergey On 01/04/15 14:16, Vishnu Radhakrishnan wrote: Hey Guys, I am running into this subject error in my dev server. I have the logs, the fediz config that we use and the response oken see below for details. I stopped

Re: How to configure DOSGi with UDP

2015-04-01 Thread Sergey Beryozkin
Hi This might be possible to do for SOAP services at least, CXF has a SOAP UDP transport. The way to support custom (non-HTTP transports) for SOAP in DOSGi is to use a WSDL-first approach, JMS at least, where you set a JMS-specific info in WSDL port sections. I'm not sure but there might be a

Apache Con NA

2015-04-01 Thread Sergey Beryozkin
Hi All Apache Con NA will be held in less than 2 weeks in Austin, Texas. Great opportunity to see the presentations about Apache CXF and many other top Apache projects, and also talk to the developers. Schedule is here: http://events.linuxfoundation.org/events/apachecon-north-america/program

Re: netty transport documentation

2015-03-25 Thread Sergey Beryozkin
Hi I haven't tried but I guess setting a transportId attribute of jaxrs:server to "http://cxf.apache.org/transports/http/netty/server"; and excluding http-jetty dependency should be sufficient Cheers, Sergey On 25/03/15 11:55, Mert ÇALIŞKAN wrote: Hi, I see that netty transport support exis

Re: Wal grammar, xs:anyType

2015-03-25 Thread Sergey Beryozkin
nfo *Lindenlaan 85 B-8400 Oostende * * Mobile: +32 (0)473 45 10 02 Phone: +32 (0)2808 08 65 Ext 988 email: peter.de.win...@mijathi.be <mailto:peter.de.win...@mijathi.be> *Site: *mijathi.be <http://www.mijathi.be/> **Twitter: **@mijathi <http://www.twitter.com/mijathi> *Instead of

Re: jwt token validation CXF

2015-03-24 Thread Sergey Beryozkin
rants) and https://github.com/apache/cxf/tree/master/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/tokens/jwt for supporting the case where an access token is JWE-encrypted JWT token Lots of info that needs to be documented... Sergey On 24/03/15 10:39, S

Re: jwt token validation CXF

2015-03-24 Thread Sergey Beryozkin
Hi Andrei Thanks for replying to it, I missed it :-). That filter may or may not be suitable, depends on particular case, the filter supports a case where it is a regular HTTP communication and a user authenticates using a custom JWT scheme, with the scheme data being a JWT token. Additiona

Re: how-to : custom ResourceComparator with DOSGi and declarative services?

2015-03-23 Thread Sergey Beryozkin
Hi On 22/03/15 20:48, joseph jobbings wrote: I'd like to add a custom resourceComparator for use with my DOSGi JAX-RS /CXF service endpoints but I don't know how to register it with the approach we've taken: annotations-based, declarative services. Is it possible to register a custom Resource

Re: Trouble with CXF jaxrs Basic auth (on Liferay/Tomcat platform)

2015-03-20 Thread Sergey Beryozkin
Hi It appears OK, the actual configuration. I think the problem is Spring Security related. The actual authentication is OK, it is asserting the the authenticated user is one of the roles does not work, may be you have an admin user in which case it would explain why you have 403 (the configur

<    6   7   8   9   10   11   12   13   14   15   >