Re: How to Disable SSLv2 client hello in CXF?

2014-10-28 Thread Jason Pell
Sorry not jetty config http config is what I meant to say On 29/10/2014 7:57 AM, "Jason Pell" wrote: > sorry forgot to get back to you on the 2.7.6 thing. > org.apache.cxf.transport.https.SSLSocketFactoryWrapper has not been changed > in 6 years, so its definately calling setEnabledProtocols wher

Re: jax-rs exception mapping

2014-10-28 Thread Lambert, Michael
Great news Sergey; thanks once again! On Tue, Oct 28, 2014 at 1:00 PM, Sergey Beryozkin wrote: > You are right, the issue was resolved as part of > https://issues.apache.org/jira/browse/CXF-6067 > > Many thanks for your help with identifying the issue > Please try 2.7.14-SNAPSHOT a bit later > C

Re: How to Disable SSLv2 client hello in CXF?

2014-10-28 Thread Jason Pell
sorry forgot to get back to you on the 2.7.6 thing. org.apache.cxf.transport.https.SSLSocketFactoryWrapper has not been changed in 6 years, so its definately calling setEnabledProtocols where you pass in a secureSocketProtocol in the jetty config. If you can attach a debugger and ensure it gets to

cxf ws-policy handling

2014-10-28 Thread Atkins
Hi All, I have some problem in soap wsse. There is some binding ws security in my wsdl. And It seems it is all standard policy by oasis. I also set up the correct password callback and keystore. But I will got some the Assertion Builder error message by cxf-rt-ws-policy. How can I solve this pr

Re: jax-rs exception mapping

2014-10-28 Thread Sergey Beryozkin
You are right, the issue was resolved as part of https://issues.apache.org/jira/browse/CXF-6067 Many thanks for your help with identifying the issue Please try 2.7.14-SNAPSHOT a bit later Cheers, Sergey On 24/10/14 15:16, Lambert, Michael wrote: Correction the problem method is ProviderFactory.g

Re: problem publishing endpoint programatically with JAX-RS (no Spring)

2014-10-28 Thread Sergey Beryozkin
On 28/10/14 15:00, Adrián Roselló Rey wrote: I see. I modified the version of javax.ws.rs-api from 2.0 to 2.0-m10 and everything worked. I saw that the cxf-rt-frontend-jaxrs bundle depends on the 2.0-m10 version. So then my module is forced to depend on this version as well, isn't it? I think yo

Re: problem publishing endpoint programatically with JAX-RS (no Spring)

2014-10-28 Thread Adrián Roselló Rey
I see. I modified the version of javax.ws.rs-api from 2.0 to 2.0-m10 and everything worked. I saw that the cxf-rt-frontend-jaxrs bundle depends on the 2.0-m10 version. So then my module is forced to depend on this version as well, isn't it? 2014-10-28 15:31 GMT+01:00 Sergey Beryozkin : > Hi > On

Re: problem publishing endpoint programatically with JAX-RS (no Spring)

2014-10-28 Thread Sergey Beryozkin
Hi On 28/10/14 14:04, Adrián Roselló Rey wrote: HI Sergey, I tryied your suggestion and I found the error no in the JAXRSOutInterceptor, but in the AbstactHTTPConnection class from Jetty. The exception contains following message: java.lang.NoClassDefFoundError: javax/ws/rs/MessageProcessingExce

Re: problem publishing endpoint programatically with JAX-RS (no Spring)

2014-10-28 Thread Adrián Roselló Rey
HI Sergey, I tryied your suggestion and I found the error no in the JAXRSOutInterceptor, but in the AbstactHTTPConnection class from Jetty. The exception contains following message: java.lang.NoClassDefFoundError: javax/ws/rs/MessageProcessingException 2014-10-28 14:41 GMT+01:00 Sergey Beryozkin

Re: problem publishing endpoint programatically with JAX-RS (no Spring)

2014-10-28 Thread Sergey Beryozkin
Hi On 28/10/14 13:32, Adrián Roselló Rey wrote: Hi Sergey, Yep, that's exactly my problem. The server process the request, and the sayHello method returns the error instead of the String message. I can only think of the situation where the CXF out chain deals with something non-initialized in

Re: Support Chinese Characters in json result for Restful

2014-10-28 Thread Kai Liu
Thanks, Sergey and Aki, Adding "charset=UTF-8" solved my problem. I sent to issues list without response then I realized I sent to the wrong list:) Now I know all questions should go to users list. Thanks and Best regards, On Tue, Oct 28, 2014 at 6:40 AM, Aki Yoshida wrote: > Hi, > cxf questio

Re: problem publishing endpoint programatically with JAX-RS (no Spring)

2014-10-28 Thread Adrián Roselló Rey
Hi Sergey, Yep, that's exactly my problem. The server process the request, and the sayHello method returns the error instead of the String message. 2014-10-28 13:51 GMT+01:00 Sergey Beryozkin : > Hi > On 28/10/14 10:20, Adrián Roselló Rey wrote: > >> Hello! >> >> I'm having some problems using J

Re: problem publishing endpoint programatically with JAX-RS (no Spring)

2014-10-28 Thread Sergey Beryozkin
Hi On 28/10/14 10:20, Adrián Roselló Rey wrote: Hello! I'm having some problems using JAX-RS to publish endpoints. I took as reference official documentation in following link, since I want to publish it programatically without using Spring: http://cxf.apache.org/docs/jaxrs-services-configurati

Re: JaxRs: reuse of WebTarget can cause OOM

2014-10-28 Thread Sergey Beryozkin
Hi I updated ClientImpl to use WeakHashMap, see https://issues.apache.org/jira/browse/CXF-6066 and http://git-wip-us.apache.org/repos/asf/cxf/commit/c9e85e76 Can you please experiment with 3.0.3-SNAPSHOT a bit later on just to confirm the issue has gone away ? Thanks, Sergey On 28/10/14 11:2

Re: Auto-discovery of root resources and cross-resource reference

2014-10-28 Thread Vjacheslav V. Borisov
2014-10-28 15:43 GMT+04:00 Sergey Beryozkin : > > I don't think it does, I guess it just duplicates the CXF JAX-RS 'own' > Spring auto-discovery process which is not a big issue IMHO, makes it a bit > slower to register. What I actually do plan to do though, something I > referred to earlier on, i

Re: Auto-discovery of root resources and cross-resource reference

2014-10-28 Thread Sergey Beryozkin
On 28/10/14 11:25, Vjacheslav V. Borisov wrote: 2014-10-28 14:21 GMT+04:00 Sergey Beryozkin : That should not be needed... Did you add @Component annotations too to the auto-discovered service beans ? I'll try to write a test when I get some free time... Yes, @Component works with But does

Re: Auto-discovery of root resources and cross-resource reference

2014-10-28 Thread Vjacheslav V. Borisov
2014-10-28 14:21 GMT+04:00 Sergey Beryozkin : > That should not be needed... Did you add @Component annotations too to the > auto-discovered service beans ? > I'll try to write a test when I get some free time... > Yes, @Component works with But does this not interferes with cxf process of bean

Re: JaxRs: reuse of WebTarget can cause OOM

2014-10-28 Thread Sergey Beryozkin
Hi I left right after I replied, sorry for a delay... I'm going to deal with this issue right now Thanks, Sergey On 23/10/14 11:26, Hartmut Lang wrote: Hi, thanks for your response. Should i open an issue for this? Hartmut 2014-10-23 10:43 GMT+02:00 Sergey Beryozkin : Hi On 23/10/14 08:41,

Re: Strange exception

2014-10-28 Thread Sergey Beryozkin
Hi I was away for few days, sorry for a delay. I wonder if it is a thread-safety issue where you have a ProviderFactory instance shared between the server and the client. This should not occur in CXF 3.0.2 where clients and servers do not share the same factory but perhaps it is the reason be

Re: REST web service with audio as attachment.

2014-10-28 Thread Sergey Beryozkin
Hi You also need to have @Consumes with the right multipart media type added... The signature looks fine. What exception are you getting and are you sure you have the client sending a multipart formatted request ? Cheers, Sergey On 27/10/14 13:32, java kurious wrote: Hello all, I am trying t

Re: Support Chinese Characters in json result for Restful

2014-10-28 Thread Aki Yoshida
Hi, cxf questions should go to users@cxf and not to dev@cxf. So, I'm moving this thread to users@cxf. Regarding your question, are you sure you are displaying the json result using the utf-8 text encoding? I suspect you are displaying it (the correct utf-8 encoded json) using simplified chinese GB

Re: Fwd: Support Chinese Characters in json result for Restful

2014-10-28 Thread Sergey Beryozkin
Hi Thanks for redirecting your query to the users list, Update @Produces to have "text/json;charset=UTF-8" or set the other charset value as needed, that should help... Let me know if it works please Cheers, Sergey On 28/10/14 05:00, Kai Liu wrote: Dear all, I use cxf to handle the Restful r

Re: Auto-discovery of root resources and cross-resource reference

2014-10-28 Thread Sergey Beryozkin
Hi, On 27/10/14 05:52, Vjacheslav V. Borisov wrote: 2014-10-23 16:20 GMT+04:00 Vjacheslav V. Borisov : 2014-10-23 16:02 GMT+04:00 Vjacheslav V. Borisov : May be I am doing something wrong, but @Autowired (tried on method and property) does not work, I am getting org.springframework.beans

problem publishing endpoint programatically with JAX-RS (no Spring)

2014-10-28 Thread Adrián Roselló Rey
Hello! I'm having some problems using JAX-RS to publish endpoints. I took as reference official documentation in following link, since I want to publish it programatically without using Spring: http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAX-

Re: Strange exception

2014-10-28 Thread Manu
Is there a way to force the re-initialisation of the endpoint or the ProviderFactory to avoid restarting the whole server ? Manuel On Mon, Oct 27, 2014 at 5:40 PM, Manu wrote: > It seems the ProviderFactory associated with the endpoint of the service > comes to an invalid state > with the "inj