Hi,
We had done upgrade from jboss 5.1.0 to Wildfly8.2.0,but here in wildfly we
see that Wildfly 8 is not using JAXB Reference Implementation. 
Trials done by me:
*Approach1*:
Added package-info.java file and also the DateAdapter.java to the project:
@XmlJavaTypeAdapters({     
        @XmlJavaTypeAdapter(value=XXX.util.DateAdapter.class,
type=java.util.Date.class) })
 package TOPLEVEL-PACKAGE;   
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters;

*Approach2:*
Tried adding new file jaxb-binding.xml with the below content to my project
resources folder:
<?xml version="1.0" encoding="UTF-8"?>

 <jxb:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
          xmlns:xs="http://www.w3.org/2001/XMLSchema";
          xmlns:jxb="http://java.sun.com/xml/ns/jaxb";>
<jxb:globalBindings>  
        <jxb:javaType name="java.util.Date" xmlType="xs:date"
                                 
parseMethod="com.thomsonreuters.ls.api.util.DateAdapter.unmarshall"
                     
printMethod="com.thomsonreuters.ls.api.util.DateAdapter.marshall"/>
</jxb:globalBindings>
</jxb:bindings>
Both these approaches did not help  me.


Thanks
Ashwini K



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Format-of-Date-Field-changed-after-apache-cxf-and-wildfly-upgradation-tp5756208p5756268.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to