Hi, No,it's not an osgi env. I will checkout cxf 2.6. Sources and compare my config with unit cxf unit test
Sent from my iPad On 08.05.2012, at 14:51, "Sergey Beryozkin" <[email protected]> wrote: > Hi > On 07/05/12 14:45, Pavel Khodchenkov wrote: >> Hi folks, >> I am having the following exception in Spring after upgrading to cxf 2.6.0 >> from 2.5.2: >> >> Caused by: org.springframework.beans.factory.BeanCreationException: Error >> creating bean with name 'transactionServiceRestPort.proxyFactory': Error >> setting property values; nested exception is >> org.springframework.beans.PropertyBatchUpdateException; nested >> PropertyAccessExceptions (1) are: >> PropertyAccessException 1: org.springframework.beans.TypeMismatchException: >> Failed to convert property value of type 'java.util.LinkedHashMap' to >> required type 'java.util.Map' for property 'headers'; nested exception is >> java.lang.ClassCastException: java.util.ArrayList cannot be cast to >> java.lang.String >> >> Code snippet: >> >> <jaxrs:client id="transactionServiceRestPort" >> >> address="http://localhost:9090/services/TransactionRestService" >> >> serviceClass="com.kitd.services.transaction.api.TransactionService" >> inheritHeaders="true"> >> <jaxrs:headers> >> <entry key="Content-Type" value="application/xml"/> >> <entry key="Accept" value="application/xml"/> >> </jaxrs:headers> >> </jaxrs:client> >> >> What is wrong with headers? > > Does it happen in the OSGI environment ? Looks like a class loader issue...We > have a simple jaxrs client loaded from Spring where the headers are also > specified. It is difficult to figure out where the problem is without a test > case. > > Cheers, Sergey > >> This e-mail and any attachments are confidential and intended solely for the >> addressee and may also be privileged or exempt from disclosure under >> applicable law. If you are not the addressee, or have received this e-mail >> in error, please notify the sender immediately, delete it from your system >> and do not copy, disclose or otherwise act upon any part of this e-mail or >> its attachments. Internet communications are not guaranteed to be secure or >> virus-free. KIT digital Inc. and its affiliates do not accept responsibility >> for any loss arising from unauthorised access to, or interference with, any >> Internet communications by any third party, or from the transmission of any >> viruses. >> > > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ > > Blog: http://sberyozkin.blogspot.com
