Definitely check the dependency tree and libs and such on the classpath with 
these things enabled.   In particular, look for any XML related libraries like 
Xerces.   I believe these are processed via the 
javax.xml.datatype.DatatypeFactory and related classes.   Thus, if there is a 
different version of the DatatypeFactory being picked up, you may end up with 
different behavior.


Dan



On Jul 18, 2013, at 1:10 PM, Sergey Beryozkin <[email protected]> wrote:

> Hi
> On 18/07/13 16:50, mayankeagle wrote:
>> Hi Sergey,
>> 
>> I understand that it is not an OAuth issue, but in both cases the version of
>> Java (and hence JAXB) is the same.
>> 
>> Does CXF internally use JAXB or Spring OXM for doing the marshalling of the
>> object into XML?
>> 
>> The Date field is part of a JAXB bean and its defined as a java.util.Date
>> object. The service I'm invoking is a JAX-RS service, and surprisingly if I
>> disable the OAuth filter, then it gives me the return value with a + sign
>> for the time-zone, otherwise it doesn't. The version of Java, CXF, Spring
>> and all dependent JARs are therefore the same.
>> 
> Sorry, no idea :-). Please check if adding this filter affects the dependency 
> tree, specifically JAXB libs
> 
> Cheers, Sergey
>> 
>> 
>> --
>> View this message in context: 
>> http://cxf.547215.n5.nabble.com/CXF-Date-marshalling-issue-tp5731091p5731113.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>> 
> 

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to