Re: SpnegoContextToken - Security Token support for CXF

2011-11-02 Thread Sumit Pathak
Dan, any word on this please. -- View this message in context: http://cxf.547215.n5.nabble.com/SpnegoContextToken-Security-Token-support-for-CXF-tp569273p4959934.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Different behaviours with MultipartBody (REST) in different browsers

2011-11-02 Thread Sergey Beryozkin
Some more possible approaches to making it work consistently: - try adding a Content-Encoding header to an attachment - make all browsers upload the binary file to the server and check how each individual browser sets the headers such as Content-Type and Content-Disposition of individual parts..

Re: ExceptionMapper choosing the wrong mapper

2011-11-02 Thread douglassparker
On further reflection, this may or may not be a problem with the exception mappers. I was trying to send back a Response.Status.BAD_REQUEST when the client sends malformed XML. But I suppose the issue could be that the CXF interceptors are throwing the exception and the exception mappers never ha

Re: ExceptionMapper choosing the wrong mapper

2011-11-02 Thread douglassparker
I have a similar, but different issue. I have an Exception mapper for javax.xml.stream.XMLStreamException. I also have other mappers and a fallback mapper for Throwable. If an exception is thrown that is a SUBCLASS of XmlStreamException, it is handled by the Throwable Mapper, and not by the XmlS

Dynamic client- issue when trying to instantiate a list of objects

2011-11-02 Thread dmsilva
Hi, In the client code, when I trying to instantiate a list of objects I get this error: Exception in thread "main" java.lang.InstantiationException: [Lcom.demo.order.server.Order; this is my client code: // Get the input class Order Class orderClass = partInfo.getTypeClass();

Re: Different behaviours with MultipartBody (REST) in different browsers

2011-11-02 Thread Sergey Beryozkin
Hi, On 02/11/11 15:04, Piotr Skawinski wrote: Hi, I'm facing different behaviours with MultipartBody on REST services. When using MultipartBody as a return value on a service method annotated with jax-rs annotation like: @GET @Path("/downloadFile/{ticket}/{fileId}") @Produces("multipart/mixed"

Re: JAX-RS InInterceptor AuthorizationPolicy is Null

2011-11-02 Thread Aki Yoshida
2011/11/2 Gary Johnson : > Hi Aki, > > Thanks for the reply. In a nutshell, WebClient, IE, and Firefox. > During most of development CXF WebClient [.create(baseAddress, USERNAME, > PASSWORD, null) for Basic authentication] was being used and the request > would come in WITH the Authorization header

Re: Turning on Jackson mapping for JSON results

2011-11-02 Thread Sergey Beryozkin
Hi Benson On 02/11/11 17:48, Benson Margulies wrote: It turns out that I had failed to enable the provider altogether. I was trying to use the META-INF stuff instead of: sf.setProvider(new JacksonJsonProvider()); How does the signature look like ? Is it Set that is returned with SomeBea

Re: WADL generation URL

2011-11-02 Thread Sergey Beryozkin
Hi On 02/11/11 05:25, chetan wrote: Hi, I'm using CXF (JAXRS) v2.4.3 I typically hit the following URL for getting the CXF generated URL: http://:/?_wadl&_type=xml So my question is, is this URL configurable? As in can I change it to something else to get the WADL? I think we should make _type

Re: Turning on Jackson mapping for JSON results

2011-11-02 Thread Benson Margulies
It turns out that I had failed to enable the provider altogether. I was trying to use the META-INF stuff instead of: sf.setProvider(new JacksonJsonProvider()); On Wed, Nov 2, 2011 at 12:33 PM, Sergey Beryozkin wrote: > Hi > > On 02/11/11 15:51, Benson Margulies wrote: >> >> "No message body

RE: JAX-RS InInterceptor AuthorizationPolicy is Null

2011-11-02 Thread Gary Johnson
Hi Aki, Thanks for the reply. In a nutshell, WebClient, IE, and Firefox. During most of development CXF WebClient [.create(baseAddress, USERNAME, PASSWORD, null) for Basic authentication] was being used and the request would come in WITH the Authorization header intact. Client and server were both

Re: Turning on Jackson mapping for JSON results

2011-11-02 Thread Sergey Beryozkin
Hi On 02/11/11 15:51, Benson Margulies wrote: "No message body writer has been found for response class HashSet." I'm sure I'm supposed to know how to do this, but I can't find it. Do I need to add a provider? I think Jackson is too strict, I recall a quality patch was submitted to CXF to ma

Re: Null Pointer on CXFNonSpringServlet

2011-11-02 Thread Daniel Kulp
My gut feeling is that it's due to: > ... > CXFBusImpl wasn't meant to be public and used in contexts like that. With 2.4.x and later, within Spring, you really need the SpringBus subclass, but even that really isn't public. You should be using the namespace supp

Turning on Jackson mapping for JSON results

2011-11-02 Thread Benson Margulies
"No message body writer has been found for response class HashSet." I'm sure I'm supposed to know how to do this, but I can't find it. Do I need to add a provider?

Different behaviours with MultipartBody (REST) in different browsers

2011-11-02 Thread Piotr Skawinski
Hi, I'm facing different behaviours with MultipartBody on REST services. When using MultipartBody as a return value on a service method annotated with jax-rs annotation like: @GET @Path("/downloadFile/{ticket}/{fileId}") @Produces("multipart/mixed") MultipartBody downloadFile(@PathParam("ticket")

Re: Null Pointer on CXFNonSpringServlet

2011-11-02 Thread Sergey Beryozkin
Hi On 02/11/11 03:40, ryluis wrote: hi guys, i have just change to cxf 2.4.3, and created a simple rest web service, integrated with spring. but stuck with this exception : java.lang.NullPointerException at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.

Re: Apache CXF-based REST server in OSGI container

2011-11-02 Thread Sergey Beryozkin
On 02/11/11 13:08, Marcin Cylke wrote: On 11/02/2011 12:45 PM, Sergey Beryozkin wrote: Which version of CXF is used in your ServiceMix download ? It's version 2.3.2. We have quite a few demos with the annotations being inherited running in Karaf. Unfortunately I can't afford now to get the

Re: Apache CXF-based REST server in OSGI container

2011-11-02 Thread Marcin Cylke
On 11/02/2011 12:45 PM, Sergey Beryozkin wrote: Which version of CXF is used in your ServiceMix download ? It's version 2.3.2. Marcin

Re: Removing XML namespaces and prefixes

2011-11-02 Thread sotiris
Hi Sergey, Sergey Beryozkin-5 wrote: > > Hi > > Do you use the default JAXB provider or configure it somehow ? > > Cheers, Sergey > > Well, the truth is that I was configuring the JAXB provider with some extra jaxb context classes, but I have completely removed this configuration and still

Re: JAX-RS InInterceptor AuthorizationPolicy is Null

2011-11-02 Thread Aki Yoshida
Hi, what is your http client? Some clients need to explicitly enable this kind of preemptive authentication mode. regards, Aki 2011/10/28 Gary Johnson : > Hello All, > > I've been developing a RESTful web service by extending > CXFNonSpringJaxrsServlet and running in Tomcat 7. Configured in web.

Re: Apache CXF-based REST server in OSGI container

2011-11-02 Thread Sergey Beryozkin
Which version of CXF is used in your ServiceMix download ? Cheers, Sergey On 02/11/11 10:15, Marcin Cylke wrote: On 10/31/2011 11:10 PM, Sergey Beryozkin wrote: https://github.com/zygm0nt/cxf-playground/blob/master/rest-example/src/main/resources/META-INF/spring/beans.xml JAXRSDataBinding

Re: Removing XML namespaces and prefixes

2011-11-02 Thread Sergey Beryozkin
Hi Do you use the default JAXB provider or configure it somehow ? Cheers, Sergey On 02/11/11 10:31, sotiris wrote: Hi Sergey, Thanks for your reply. My bad I didn't mention the version I was trying it on in the first place. It was 2.3.1, so after your suggestion I retested it with 2.4.3, but u

Re: Removing XML namespaces and prefixes

2011-11-02 Thread sotiris
Hi Sergey, Thanks for your reply. My bad I didn't mention the version I was trying it on in the first place. It was 2.3.1, so after your suggestion I retested it with 2.4.3, but unfortunately with the same results. For a minute I thought that it might be my structures that are causing this behav

Re: Apache CXF-based REST server in OSGI container

2011-11-02 Thread Marcin Cylke
On 10/31/2011 11:10 PM, Sergey Beryozkin wrote: https://github.com/zygm0nt/cxf-playground/blob/master/rest-example/src/main/resources/META-INF/spring/beans.xml JAXRSDataBinding provider is a fairly specific provider - do you need to use it in your project ? No, I don't need that. It is comm

Re: CXF Client issue with upgrade from CXF 2.2.7 to 2.4.2

2011-11-02 Thread srinivas thallapalli
I tried with following changes but still the problem reproducible public interface IDataTypeTester { String helloWorld(String text); @WebResult(name="integer") int helloUsers(@WebParam(name="user")List users); } package com.savvion.webservice.cxf.service; @WebS

Re: STS, SAMLRealm, signatureProperties

2011-11-02 Thread Colm O hEigeartaigh
Hi Oli, > I can configure a signatureAlias per SAMLRealm but I can't configure a > signaturePropertiesFile per SAMLRealm. I think it would make sense to allow > to configure the following attributes per SAMLRealm: > CallbackHandler > SignatureProperties > signaturePropertiesFile I agree. We don