Path starts with / is not absolute?

2013-06-17 Thread Rice Yeh
Hi, I use ResponseBuilder to set location header. The location is started with "/" but it will changed by cxf jaxrs to be relative to the base uri. Is not a path starting with '/' absolute? My code is like below: return Response .ok() .header("Location", kontinue) .build(); Rice

Re: OAuth2 for redundant CXF REST Services

2013-06-17 Thread inteloid
Thanks again. I'm looking into that :-) -- View this message in context: http://cxf.547215.n5.nabble.com/OAuth2-for-redundant-CXF-REST-Services-tp5729365p5729425.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: IndexOutOfBoundsException in MessageContentsList.get()

2013-06-17 Thread Freeman Fang
Hi, IIRC, the MessagePartInfo index is start from 0, so I don't think we should change code in MessageContentsList.java to super.get(key.getIndex()-1) IMO, a narrow-down test case would be necessary and more helpful here. Btw, when you use wsdl2java to generate the code, you can enable valida

IndexOutOfBoundsException in MessageContentsList.get()

2013-06-17 Thread Tim Olson
Our CXF client consistently gets an IndexOutOfBoundsException (java.lang.IndexOutOfBoundsException: Index: 19, Size: 19) when handling a SOAP response which otherwise looks valid. We're using CXF 2.7.5 with the wsdl2java Maven plugin to generate client wrapper code. The stack trace goes from Hold

Re: OAuth2 for redundant CXF REST Services

2013-06-17 Thread Sergey Beryozkin
On 17/06/13 17:24, Sergey Beryozkin wrote: On 17/06/13 16:53, inteloid wrote: Thank you Sergey, I really enjoy the speed you reply with :-). may happen only when I have a vague idea of what I'm talking about :-) For this case the if AccessTokenValidatorService holds instances of ServerAccessT

Re: + invoking ?wsdl URL

2013-06-17 Thread Jose María Zaragoza
Thanks I'm using WSS4J interceptors to sign outgoing messages Could be this the cause what my bean is making calls to ?wsdl URL ? I agree with you in all you said , but I don't understand my proxy client ( jaxws:client ) performs those calls ... 2013/6/17 Andrei Shakirin > > > > Indeed, I do

RE: + invoking ?wsdl URL

2013-06-17 Thread Andrei Shakirin
> > Indeed, I don't understand why I would need to define a wsdlLocation for a > element Why ? You don't need it if you do not use policies in your WSDL. CXF builds service model on the base of annotations in generated code. Regards, Andrei. > > > > > > > On 06/17/2013 10:45 AM

Re: Add Host HTTP header + thread safe

2013-06-17 Thread Daniel Kulp
Freeman already mentioned the interceptor and thread safety issue. However, there might be another issue. I'm not sure you can set a specific "Host" header. The HttpURLConnection will always output a Host header as that's more or less required for HTTP 1.1. It should be setting the Host

Re: + invoking ?wsdl URL

2013-06-17 Thread Jose María Zaragoza
Indeed, I don't understand why I would need to define a wsdlLocation for a element Why ? On 06/17/2013 10:45 AM, Jose María Zaragoza wrote: Hi: > > I'm using Apache CXF 2.7.3 > > I created a bean (proxy client) to invoke a remote > webservice. > I

Re: OAuth2 for redundant CXF REST Services

2013-06-17 Thread Sergey Beryozkin
On 17/06/13 16:53, inteloid wrote: Thank you Sergey, I really enjoy the speed you reply with :-). may happen only when I have a vague idea of what I'm talking about :-) For this case the if AccessTokenValidatorService holds instances of ServerAccessToknes inside it's memory it becomes a single

Re: OAuth2 for redundant CXF REST Services

2013-06-17 Thread inteloid
Thank you Sergey, I really enjoy the speed you reply with :-). For this case the if AccessTokenValidatorService holds instances of ServerAccessToknes inside it's memory it becomes a single point of failure, so there's a need to persist the tokens somewhere. To keep it simpler, isn't there a way t

Re: + invoking ?wsdl URL

2013-06-17 Thread Jose María Zaragoza
Thanls Andrei How I can force don't use wsdl/schema validation? 2013/6/17 Andrei Shakirin > Hi, > > IMO client will not invoke http://?wsdl, if you do not > specify it explicitly as wsdlLocation in jaxws:client or in proxy > annotations. > If the service doesn't use various policies (like WS-

Re: + invoking ?wsdl URL

2013-06-17 Thread Jose María Zaragoza
But I am not using a Service class as a client, but I inject it ( bean ) into my servlet instance If I look for wsdl references in my code, there aren't anyone Thanks 2013/6/17 Glen Mazza > That's what I'm talking about too. :) That string you see there gets put > into the generated Service

Re: + invoking ?wsdl URL

2013-06-17 Thread Glen Mazza
That's what I'm talking about too. :) That string you see there gets put into the generated Service class so it checks the classpath for the WSDL and no longer makes the WSDL GET call. Glen On 06/17/2013 11:16 AM, Jose María Zaragoza wrote: Thanks. But I talking about if proxy client invoke

RE: + invoking ?wsdl URL

2013-06-17 Thread Andrei Shakirin
Hi, IMO client will not invoke http://?wsdl, if you do not specify it explicitly as wsdlLocation in jaxws:client or in proxy annotations. If the service doesn't use various policies (like WS-Security policies) and fine grained schema validation, then you can get away without the wsdlLocation at

Re: + invoking ?wsdl URL

2013-06-17 Thread Jose María Zaragoza
Thanks. But I talking about if proxy client invoke http://?wsdl *in runtime*, not when generating JAXB classes Regards 2013/6/17 Glen Mazza > Hi Jose, I hope you're using Maven, you can switch to a classpath URL so > it doesn't get the WSDL out from over the network, search on classpath: i

Re: + invoking ?wsdl URL

2013-06-17 Thread Glen Mazza
Hi Jose, I hope you're using Maven, you can switch to a classpath URL so it doesn't get the WSDL out from over the network, search on classpath: in the service's pom.xml in this blog article: http://www.jroller.com/gmazza/entry/web_service_tutorial. I'm sure there's an equivalent command-line

+ invoking ?wsdl URL

2013-06-17 Thread Jose María Zaragoza
Hi: I'm using Apache CXF 2.7.3 I created a bean (proxy client) to invoke a remote webservice. I've generated JAXB classes and endpoint interface with wsdl2java I would like if this proxy client tries to getting wsdl from remote endpoint . I mean, is this proxy getting "http://?wsdl" URL? If it

Re: OAuth2 for redundant CXF REST Services

2013-06-17 Thread Sergey Beryozkin
Hi, On 17/06/13 13:05, inteloid wrote: Hello. We have multiple redundant instances of Apache CXF REST Services hidden behind a ballancer, and we need to integrate OAuth2. Everything works as needed with a single machine, the problem is, where to persist server access tokens for retrieval from a

OAuth2 for redundant CXF REST Services

2013-06-17 Thread inteloid
Hello. We have multiple redundant instances of Apache CXF REST Services hidden behind a ballancer, and we need to integrate OAuth2. Everything works as needed with a single machine, the problem is, where to persist server access tokens for retrieval from another CXF machine? What are the best pra

Re: Using Jackson as JSON body reader/writer with DOSGi

2013-06-17 Thread Sergey Beryozkin
Hi On 17/06/13 11:19, Julio Carlos Barrera Juez wrote: Hi! I'm trying to achieve the same configuration than you, Neil. I'm not using Spring, but Blueprint. Moreover, I have a multi-bundle configuration. I have DOSGi that offers REST API of my services published in the OSGi Service Registry. I h

Re: Using Jackson as JSON body reader/writer with DOSGi

2013-06-17 Thread Julio Carlos Barrera Juez
Hi! I'm trying to achieve the same configuration than you, Neil. I'm not using Spring, but Blueprint. Moreover, I have a multi-bundle configuration. I have DOSGi that offers REST API of my services published in the OSGi Service Registry. I have one of these services that needs to be serialized usi

Re: Add Host HTTP header + thread safe

2013-06-17 Thread Jose María Zaragoza
Hello: 2013/6/17 Freeman Fang > > And IMO add an outInterceptor and change HTTP header per message on the > fly should be the way to go, add an interceptor is easy in configuration > file. > > [1]http://cxf.apache.org/faq.html > > Yes, you're right Thanks and regards

Re: Add Host HTTP header + thread safe

2013-06-17 Thread Freeman Fang
Hi, I don't think you can add specific HTTP header through configuration. And for your scenario, any change on ((BindingProvider)proxy).getRequestContext() isn't thread safe, please take a look at [1] to get more details, so you need specify thread.local.request.context as true in this case.

Add Host HTTP header + thread safe

2013-06-17 Thread Jose María Zaragoza
Hello: I'm using Apache CXF 2.7.3 to invoke a WS from a servlet instance. So I defined a proxy client with and I injected it to that servlet instance. I need to set Host HTTP header when invoking remote WS. And it always will be the same value ( the remote host ) I would like to define under

Re: compilation errors from manullay install cxf 3.0.0-SNAPSHOT

2013-06-17 Thread Freeman Fang
That's caused by that trunk is refactored a lot recently and seems somehow your colleague not hold all necessary latest dependencies. - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: h

Re: compilation errors from manullay install cxf 3.0.0-SNAPSHOT

2013-06-17 Thread Willem jiang
Hi, Did you try to use the apache snapshot maven repo? The url is https://repository.apache.org/content/repositories/snapshots. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://

compilation errors from manullay install cxf 3.0.0-SNAPSHOT

2013-06-17 Thread patch_78
Hi, I have a java project (project A) using maven and cxf version 3.0.0-SNAPSHOT. I downloaded cxf from trunk and built/installed it on my machine. When I use maven to build/install the project A, everything works fine. But my colleague he did not have any cxf libraries installed on his machine.