Re: Small problems with x-www-form-urlencoded requests

2015-06-28 Thread Sergey Beryozkin
Hi Andrei Indeed there were problems reported before due to the filters (Spring security, etc) consuming the body and thus JAX-RS form parameters becoming empty, and that was the reason for the quoted spec update. You are right it makes sense to optionally disable using query parameters to

Re: problems using CXF as a JAX-RS 2.0 client

2015-06-26 Thread Sergey Beryozkin
FYI, I've added an 'http.autoredirect' property that can used to enable an auto-redirect if really needed by passing it directly to 2.0 Configurable (Client, WebTarget). Sergey On 25/06/15 22:09, Sergey Beryozkin wrote: Thanks for the analysis so far. It does not really bring us any closer

Re: problems using CXF as a JAX-RS 2.0 client

2015-06-25 Thread Sergey Beryozkin
Hi You could've just posted a link to CXF-6475 to make it easier to read this message. I do not see where the issue is. HttpConduit logging is a bit confusing indeed because there's a number of attempts to set TLS client parameters but it does not mean that HTTPS is not used. Can you trace

Re: problems using CXF as a JAX-RS 2.0 client

2015-06-25 Thread Sergey Beryozkin
-6475 BTW, I don't have access to the server side as I'm the WS consumer. I do have a support agreement with the WS provider though so if necessary I can possibly request logs from them. However, it would seem this issue has more to do w/ CXF. On Thursday, June 25, 2015 3:55 AM, Sergey

Re: Problem with optional @PathParam

2015-06-24 Thread Sergey Beryozkin
. Another bug? I'm using CXF as part of Camel 2.15.1 running in Karaf 3.0.x. Thanks, Kevin -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com

Re: Basic Authentication with the dynamic client

2015-06-24 Thread Sergey Beryozkin
Hi, you might need to implement your own custom supplier, possibly extending BasicAuthSupplier Thanks, Sergey On 24/06/15 03:43, Talkov, Roger wrote: We have Basic Authentication working for the dynamic client with user password, But have not been able to figure out how to set Host, Port,

Re: Invalid HTTP method: PATCH

2015-06-24 Thread Sergey Beryozkin
Hi This looks fine, saves on configuring individual clients Cheers, Sergey On 24/06/15 17:00, Jose María Zaragoza wrote: 2015-06-24 16:06 GMT+02:00 Jose María Zaragoza demablo...@gmail.com: Hello: I'm using CXF 2.7.8 When I try to invoke an URL with PATCH verb , I'm getting Invalid HTTP

Re: Jax-rs 2 client with clustering/failover features?

2015-06-22 Thread Sergey Beryozkin
ClientBuilder accepts JAX-RS features (if you mean you'd like to set a given feature once and have it available for all Clients/WebTargets). But 2.0 API is not integrated with CXF-specific features Cheers, Sergey On 22/06/15 20:51, Canning, Charles wrote: Given your example code: Client

Re: POST an JSON array by using Jettison1.3.5

2015-06-22 Thread Sergey Beryozkin
Zaragoza wrote: 2015-06-22 13:11 GMT+02:00 Sergey Beryozkin sberyoz...@gmail.com: Hi CXF JettisonProvider is only capable of supporting JAXB-generated events, it does not deal directly with JSONObjects. What is the problem you are seeing with JAXB ? Can not have a sequence starting immediately from

Re: POST an JSON array by using Jettison1.3.5

2015-06-22 Thread Sergey Beryozkin
Hi CXF JettisonProvider is only capable of supporting JAXB-generated events, it does not deal directly with JSONObjects. What is the problem you are seeing with JAXB ? Can not have a sequence starting immediately from [ ? That should be possible to configure with JettisonProvider with

Re: POST an JSON array by using Jettison1.3.5

2015-06-22 Thread Sergey Beryozkin
, those options are in CXF starting from 3.0.x and Jackson should do well too HTH, Sergey On 22/06/15 17:13, Jose María Zaragoza wrote: 2015-06-22 16:36 GMT+02:00 Sergey Beryozkin sberyoz...@gmail.com: Hi Have a look at https://github.com/apache/cxf/blob/master/rt/rs/extensions/providers/src

Re: POST an JSON array by using Jettison1.3.5

2015-06-22 Thread Sergey Beryozkin
Adding a 'dropElementsInXmlStream':false might be enough without having to introduce a dedicated wrapper Sergey On 22/06/15 12:48, Sergey Beryozkin wrote: When you use a collection, JSONProvider wraps it internally to support a common path where a JAXB bean is provided and serialized, so

Re: POST an JSON array by using Jettison1.3.5

2015-06-22 Thread Sergey Beryozkin
Hi Have a look at https://github.com/apache/cxf/blob/master/rt/rs/extensions/providers/src/test/java/org/apache/cxf/jaxrs/provider/json/JSONProviderTest.java#L215 Cheers, Sergey On 22/06/15 15:30, Jose María Zaragoza wrote: 2015-06-22 13:48 GMT+02:00 Sergey Beryozkin sberyoz...@gmail.com

Re: POST an JSON array by using Jettison1.3.5

2015-06-22 Thread Sergey Beryozkin
And the next 2 tests too... Some of it should help... Sergey On 22/06/15 15:36, Sergey Beryozkin wrote: Hi Have a look at https://github.com/apache/cxf/blob/master/rt/rs/extensions/providers/src/test/java/org/apache/cxf/jaxrs/provider/json/JSONProviderTest.java#L215 Cheers, Sergey On 22/06

Re: accessing httpservletrequest session in apache cxf rest service

2015-06-18 Thread Sergey Beryozkin
On 18/06/15 05:00, las wrote: Is it ok to access httpservletrequest - session object in rest service implementation? I understand rest api is supposed to be stateless and should not use cookies etc., please advise. Many real world applications use sessions. Perhaps you can avoid it and say use

Re: jaxrs-client:client with abstract=true / reuse configuration

2015-06-17 Thread Sergey Beryozkin
JAX-RS client proxies can not be yet created from the abstract elements, I agree it is a useful feature that JAX-WS proxies support, I'll ask Dan for some help in explaining how this can be realized Cheers, Sergey On 16/06/15 11:19, axelr wrote: I want to inject several client proxies by

Re: http-conf:conduit : configure global settings for all proxy clients

2015-06-16 Thread Sergey Beryozkin
Hi, this is probably related to https://issues.apache.org/jira/browse/CXF-5320 Cheers, Sergey On 11/06/15 15:33, Jose María Zaragoza wrote: 2015-06-11 16:02 GMT+02:00 Jose María Zaragoza demablo...@gmail.com: Hello: I'm using CXF 2.7.8 to implement several webservice proxy clients ( SOAP ,

Re: Favicon errors?

2015-06-12 Thread Sergey Beryozkin
Thanks, perhaps the browser can be configured not to request favicon.ico ? If not then have it in the root directory and if you have CXFServlet listening on /* then also configure it to redirect favicon.ico requests to the default servlet or make its URL pattern more restictive, example,

Re: Method javadocs are missed in WADL when JDK8 is used

2015-06-12 Thread Sergey Beryozkin
be interested. If it is still does not work: can you please consider providing a patch ? Sergey On 11/06/15 21:13, Sergey Beryozkin wrote: Indeed the test class has only 2 methods, with 0 and 2 parameters. And it just worked after the latest tweak but it is obvious the existing tests do not have

Re: Method javadocs are missed in WADL when JDK8 is used

2015-06-11 Thread Sergey Beryozkin
or with 2 parameters. String[] opBits length is always 2 for methods with any number of parameters. -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Thursday, June 11, 2015 6:37 PM To: users@cxf.apache.org Subject: Re: Method javadocs are missed in WADL when

Re: Method javadocs are missed in WADL when JDK8 is used

2015-06-11 Thread Sergey Beryozkin
Hope this time it will work better: http://git-wip-us.apache.org/repos/asf/cxf/commit/5f5f3748 Sergey On 10/06/15 14:46, Sergey Beryozkin wrote: Indeed, I got it now :-) Sergey On 10/06/15 14:36, Anastasiia Iurshina wrote: As it is it doesn't work for any methods. But if the operation marker

Re: Method javadocs are missed in WADL when JDK8 is used

2015-06-10 Thread Sergey Beryozkin
() So in Java 8 the list of parameter types starts with a hyphen, ends with a hyphen, and the types are separated by hyphens. -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Tuesday, June 09, 2015 2:35 PM To: users@cxf.apache.org Subject: Re: Method javadocs

Re: Method javadocs are missed in WADL when JDK8 is used

2015-06-10 Thread Sergey Beryozkin
. -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: Wednesday, June 10, 2015 4:25 PM To: users@cxf.apache.org Subject: Re: Method javadocs are missed in WADL when JDK8 is used Hi I'm presuming the updated code works for methods with no parameters only ? I'll pay a closer

Re: [JAX-RS] Best practice for update methods

2015-06-10 Thread Sergey Beryozkin
wrote: On 09/06/2015 15:17, Sergey Beryozkin wrote: Hi Francesco See https://issues.apache.org/jira/browse/CXF-6447, So you'd be able to optimize the signature if still preferred, the server code would stay completely portable, though only CXF proxies would likely to work with such signatures

Re: AW: Problems with forwarding

2015-06-09 Thread Sergey Beryozkin
yet. Thank you very much and best regards, Marko -Ursprüngliche Nachricht- Von: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Gesendet: Freitag, 5. Juni 2015 14:55 An: users@cxf.apache.org Betreff: Re: Problems with forwarding Hi Marko, sorry for a delay, On 03/06/15 10:33, Voss

Re: CXF work with mutual auth

2015-06-09 Thread Sergey Beryozkin
Hi Please ask such questions on the users list, FYI, on the client side you can experiment with JAX-RS 2.0 Client API or configure CXF HttpConduit directly, see HttpConduit info: http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html on the server you can get TlsSessionInfo

Re: Method javadocs are missed in WADL when JDK8 is used

2015-06-09 Thread Sergey Beryozkin
Hi I've just fixed for 3.0.6-SNAPSHOT: https://issues.apache.org/jira/browse/CXF-6446 Have a look please if it does work for you Cheers, Sergey On 08/06/15 11:20, Sergey Beryozkin wrote: Hi Thanks for reporting this issue, I'll take care of it in time for the next release. FYI, it is also

Re: [JAX-RS] Best practice for update methods

2015-06-09 Thread Sergey Beryozkin
/15 10:43, Sergey Beryozkin wrote: Sorry, that will not work with the proxies as they won't be able to resolve the {key} :-), with webclients only... I wonder if we can explore your idea on the client side and try to resolve a variable if the body bean is available...I'll try to experiment a bit

Re: [JAX-RS] Best practice for update methods

2015-06-08 Thread Sergey Beryozkin
. Often a Path variable is also represented with PathParam but it is not a requirement Cheers, Sergey On 08/06/15 10:32, Francesco Chicchiriccò wrote: Hi Sergey, thanks for your response. On 08/06/2015 11:16, Sergey Beryozkin wrote: Hi Francesco Sure, you can try: @PUT @Consumes

Re: JAX RS Injecting client proxies by Spring: Specified class is an interface

2015-06-08 Thread Sergey Beryozkin
Hi It does work with Spring itself managing the actual injection, based on the stack trace, you write the code yourself by directly requesting a jaxrs:client bean. Try to do create a bean like CustomerServiceProxy with a property 'customerService' set in Spring to refer to jaxrs:client,

Re: Method javadocs are missed in WADL when JDK8 is used

2015-06-08 Thread Sergey Beryozkin
Hi Thanks for reporting this issue, I'll take care of it in time for the next release. FYI, it is also possible to prepare a WADL document at the build time and there one can depend on the actual on the more robust JavaDoc API to get the doc collected:

Re: [JAX-RS] Best practice for update methods

2015-06-08 Thread Sergey Beryozkin
is left empty. Am I missing something? Any suggestion to fix the original problem? Thanks for your support. Regards. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com

Re: JAX RS Injecting client proxies by Spring: Specified class is an interface

2015-06-08 Thread Sergey Beryozkin
Sounds good, thanks for the confirmation, Sergey On 08/06/15 13:10, axelr wrote: Hi Sergey, I am sorry, my fault! Because I am not sure whether I got your point, I had a more detailed look in the stack trace: The exception is thrown by a different bean 'customerBean' not the jaxrs-client:client

Re: JAX-RS 2.0 Client API and TLS configuration

2015-06-05 Thread Sergey Beryozkin
PM, Sergey Beryozkin sberyoz...@gmail.com wrote: Hi Here is a test: https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRS20HttpsBookTest.java There should be some examples on the web too Cheers, Sergey On 04/06/15 20:07, Matt Parker

Re: JAX-RS 2.0 Client API and TLS configuration

2015-06-05 Thread Sergey Beryozkin
Or, the CXF specific way, pass a 2.0 Client to WebClient.getConfig() The list or properties can also be extended as neded, if you have anything specific in mind then let me know please Thanks, Sergey On 05/06/15 10:27, Sergey Beryozkin wrote: Hi Romain asked to support it earlier, so we have

Re: Problems with forwarding

2015-06-05 Thread Sergey Beryozkin
Hi Marko, sorry for a delay, On 03/06/15 10:33, Voss, Marko wrote: Hello, I do have a problem with forwarding done in CXF. I have a service implementation like this: @Path(/foo) public interface FooSpec { @GET Response foo(@QueryParam(bar) String bar, @Context

Re: JAX-RS 2.0 Client API and TLS configuration

2015-06-04 Thread Sergey Beryozkin
other spec-compliant way). Thanks in advance, -Matt -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com

Re: No SessionManager

2015-06-03 Thread Sergey Beryozkin
Hi I've never used this mechanism myself, can you please let us know with which versions of Karaf/CXF/Camel it did work and may be it will be possible to trace the relevant changes that have affected it. Perhaps another way is to control it with the pax web properties ? It is also quite

Re: WSDLManager cache

2015-06-02 Thread Sergey Beryozkin
Just updating the Subject to avoid the confusions Cheers, Sergey On 02/06/15 00:43, dilipjain70 wrote: Hello, We're currently using CXF 2.7.7. When invoking a Web service, if the Service Provider changes the WSDL, what are our options to get around WSDL caching by WSDLManager? We're open to

Re: Programatically registering a provider

2015-06-02 Thread Sergey Beryozkin
Hi On 29/05/15 11:28, Martin Nielsen wrote: Hi! I need to add a provider to transform some jaxb annotated classes into html. I found this piece of documentation: http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-Customizingmediatypesformessagebodyproviders It says One can easily

Re: Defining multiple redirects for static resources

2015-06-02 Thread Sergey Beryozkin
Hi It is not possible to configure a single CXF servlet this way. Just a quick question: do you really need to have .css and .js resource paths overlapping with CXFServlet resource/endpoint path ? Example, CXFServlet may be having a /services/* URL pattern, do you need to have

Re: NumberFormatException with OAuthClientUtils and Google APIs

2015-06-01 Thread Sergey Beryozkin
Hi Jaime Good to hear from you, I recall fixing this issue not that long ago (I'm working on a big_query demo in the distribution), what CXF version are you working with ? Try CXF 2.7.15 or 3.0.5 ? Cheers, Sergey On 28/05/15 17:39, jmeritt wrote: I'm seeing a numberformatexception thrown

Re: jaxrs client with beanparam service

2015-06-01 Thread Sergey Beryozkin
for firstName and middleName. Is there something I am missing? Thanks -Sonam -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com

Re: DOSGI ws register different domain

2015-05-21 Thread Sergey Beryozkin
in org.apache.cxf.dosgi.dsw.handlers.HttpServiceManager and you will see immediately what is missing. Sergey Any other idea? On 15/05/15 18:16, Sergey Beryozkin wrote: Hi Do you configure somewhere an org.apache.cxf.servlet.base-address property ? I can only think of the default CXF HTTP transport using

Re: CXF : sample (spring security) from jetty to tomcat

2015-05-21 Thread Sergey Beryozkin
Hi The demo build produces a war - so just copy that to Tomcat and it should work HTH, Sergey On 21/05/15 15:47, Nicolas Paris wrote: Hi ! After successful testing some samples (spring_security), my goal is to moove it from jetty to tomcat 1.7. According to the documentation, I can deploy the

Re: DOSGI ws register different domain

2015-05-21 Thread Sergey Beryozkin
- it will be suspended - in your Eclipse create a new Remote Debugging session on port 5005, and set a breakpoint in HttpServiceManager HTH, Sergey On 21/05/15 15:01, Borja Miñano wrote: On 21/05/15 13:42, Sergey Beryozkin wrote: On 21/05/15 09:11, Borja Miñano wrote: No, I didn't. I have tried now, but the same

Re: CXF can't make any sample working

2015-05-20 Thread Sergey Beryozkin
Hi jax_rs/basic demo works for me, no problems, 2.7.16-SNAPSHOT. spring_security demo was failing as I did not push the patch from 3.0.x to 2.7.x to do with updating Spring Security dependencies - I've just got it fixed. Try CXF 3.0.5 - I've checked these demos, they are OK... Thanks, Sergey

Re: DOSGI ws register different domain

2015-05-15 Thread Sergey Beryozkin
. In version 1.1 it worked as I expected. Am I missing something? -- View this message in context: http://cxf.547215.n5.nabble.com/DOSGI-ws-register-different-domain-tp5757303.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http

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 sberyoz...@gmail.com

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

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Sergey Beryozkin
to 4.1.1.RELEASE. may be Spring 4.0.8.RELEASE uses a different sequence of calls... Let us know please if it helps Sergey On 14/05/15 10:07, Sergey Beryozkin wrote: I'm actually not sure, Dan may know; Can you experiment with increasing a Spring version ? Sergey On 14/05/15 09:59, Maxim

Re: UnsupportedOperationException after upgrading to 3.1.0

2015-05-14 Thread Sergey Beryozkin
-frontend-jaxws-3.1.0.jar:3.1.0] On Thu, May 14, 2015 at 3:09 PM, Sergey Beryozkin sberyoz...@gmail.com wrote: to 4.1.1.RELEASE. may be Spring 4.0.8.RELEASE uses a different sequence of calls... Let us know please if it helps Sergey On 14/05/15 10:07, Sergey Beryozkin wrote: I'm actually not sure

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

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

2015-05-08 Thread Sergey Beryozkin
by the 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 using

Re: Issues with WADL - Apache CXF JAX-RS

2015-05-08 Thread Sergey Beryozkin
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-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

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: Webclient to local endpoint loses SecurityContext

2015-05-06 Thread Sergey Beryozkin
=service1 / ref bean=service2 / /jaxrs:serviceBeans jaxrs:providers ref bean=jaxbProvider / ref bean=xxxExceptionMapper / ref bean=xxxRuntimeExceptionMapper / /jaxrs:providers Regards Kiren -- Sergey Beryozkin

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

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
-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: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-05-04 Thread Sergey Beryozkin
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 Francesco, PolicyServiceImpl is the first

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

2015-05-04 Thread Sergey Beryozkin
/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 sberyoz...@gmail.com An: users

Re: Auto generation of WADL

2015-05-03 Thread Sergey Beryozkin
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.talend.com

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 been

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-30 Thread Sergey Beryozkin
. 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 morning, should have time before a release... Thanks, Sergey

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

2015-04-30 Thread Sergey Beryozkin
requests on the server side. Regards, Veit Gesendet: Dienstag, 28. April 2015 um 13:07 Uhr Von: Sergey Beryozkin sberyoz...@gmail.com 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, appears

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: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-30 Thread Sergey Beryozkin
that 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 wrote: Indeed

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 JAXBContext

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
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: AW: AW: AW: AW: AW: How to forward requests to a JSP page when using CXFNonSpringJaxrsServlet np, thanks

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

2015-04-29 Thread Sergey Beryozkin
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 Betreff: Re: AW: AW

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 Marko On 29/04

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 checked

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

2015-04-29 Thread Sergey Beryozkin
: Sergey Beryozkin sberyoz...@gmail.com 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, Sergey On 28

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

2015-04-29 Thread Sergey Beryozkin
-value /init-param or even init-param param-namestatic-resources-list/param-name param-value/(\w)+.css/param-value /init-param though the latter option is limited... HTH, Sergey On 29/04/15 12:22, Sergey Beryozkin wrote: LOL, it has 3

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

Re: Does CXF support percent encoded values on ApplicationPath

2015-04-29 Thread Sergey Beryozkin
at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com

Re: No grammar in WADL with CXF 3.0.5-SNAPSHOT

2015-04-29 Thread Sergey Beryozkin
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 related somehow

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

2015-04-29 Thread Sergey Beryozkin
the code. 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 about

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: dependency groupIdorg.apache.cxf/groupId artifactIdcxf-rt-transports-http-hc/artifactId version3.0.4/version scopetest/scope /dependency

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

2015-04-28 Thread Sergey Beryozkin
2015 um 18:43 Uhr Von: Sergey Beryozkin sberyoz...@gmail.com An: users@cxf.apache.org Betreff: Re: Aw: Re: Re: Re: CXF JAX-RS client proxy and duplicate requests under load On 27/04/15 17:17, Veit Guna wrote: Thanks :). Sadly this doesn't make any difference :(. Still two requests... This is sad

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
Thanks Veit Gesendet: Dienstag, 28. April 2015 um 13:45 Uhr Von: Sergey Beryozkin sberyoz...@gmail.com 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 Client (HttpUrlConnection) and is also known to work

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: 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/rs/core/Response.html#getLink(java.lang.String) it says

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: Aw: Re: CXF JAX-RS client proxy and duplicate requests under load

2015-04-27 Thread Sergey Beryozkin
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 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 sberyoz...@gmail.com An: users@cxf.apache.org

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

2015-04-27 Thread Sergey Beryozkin
, 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 sberyoz...@gmail.com An: users

Re: WADL Grammar section lost for generic service class.

2015-04-26 Thread Sergey Beryozkin
, 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've updated a bit the WADLGenerator code and added a test, should all work

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: 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: OK, may

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

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 from

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 recognized

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 /users/;realm=a Note

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