Hii, Thank you again for your time, i tried to use JAXRSServerFactoryBean to create a new JAX-RS server so i added it Jetty transport jar to my maven, but CXF seems to need Google Guava and Glassfish HK2, so i got some exceptions in the first time until i added manualy Guava and HK2 in maven, why CXF doesn't declare these two dependencies althought it need them?
Thank you again and again, very nice from you for the support :) 2016-02-23 19:13 GMT+01:00 Sergey Beryozkin <sberyoz...@gmail.com>: > Hi, in most cases you'd like to configure it somehow, so may be try to > create JAX-RS Applications where it is all configured in the code and > register these applications with CXFNonSpringJaxrsServlet > > Sergey > > On 23/02/16 18:08, LaVloZ . wrote: > >> Hi, >> Thank you for your time :), i have a little question, i see that the doc >> uses Spring, can we use CXF and OAuth implementation totaly without >> Spring?? :) >> >> Thanks >> >> 2016-02-23 10:33 GMT+01:00 Sergey Beryozkin <sberyoz...@gmail.com>: >> >> Hi, >>> well, Jersey is of course a quality JAX-RS RI, but indeed, given its >>> close >>> integration with Glassfish, those users who may want to run CXF JAX-RS >>> with >>> Glassfish will need to experiment and try to disable Jersey somehow :-) >>> >>> Sergey >>> >>> On 22/02/16 22:04, LaVloZ . wrote: >>> >>> I didn't recieve an anwser mail for my original question so i resent the >>>> same question, then i saw your answer in my SO :) >>>> And as you said, Jersey is the problem, you have saved us alots of time. >>>> >>>> Thank you so much :) >>>> >>>> 2016-02-22 18:35 GMT+01:00 Sergey Beryozkin <sberyoz...@gmail.com>: >>>> >>>> Hi >>>> >>>>> I replied to your original question a week or so ago, can you please >>>>> check >>>>> it ? >>>>> >>>>> Jersey is loaded is there so I think you may need to disable it somehow >>>>> >>>>> Thanks, Sergey >>>>> >>>>> On 22/02/16 17:24, LaVloZ . wrote: >>>>> >>>>> Hello all >>>>> >>>>>> >>>>>> i have more than one week tryign to figure out the problem, but i >>>>>> didn't >>>>>> find it, googling, stackoverflow ..., but nothing. >>>>>> >>>>>> The problem is that the web services work fine but when i add the jar >>>>>> for >>>>>> OAuth support using Maven i get NullPointerException raised inside >>>>>> OAuthRequestFilter : >>>>>> >>>>>> this is the link of the line on GitHub : >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> https://github.com/apache/cxf/blob/7d1890510a85d4fd7e70faebc56d6685f103621d/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java#L82 >>>>>> >>>>>> That JAXRSUtils.getCurrentMessage() returns null reference so that >>>>>> null >>>>>> cuz >>>>>> a NullPointerException latter in code. >>>>>> >>>>>> i'm using CXF 3.1.5 and tried it on Glassfish 4.1.1 and TomEE 7.0.63 >>>>>> on >>>>>> Oracle JDK 1.8.0_66 >>>>>> >>>>>> Thank you all. >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>> Sergey Beryozkin >>>>> >>>>> Talend Community Coders >>>>> http://coders.talend.com/ >>>>> >>>>> >>>>> >>>> >>> >> > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ >