I am trying to define a Jaxb2Marshaller
bean in Spring -WS to use a custom adapter that extends the XmlAdapter
. The XML file has the following:
<bean id="jaxb2Marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller"> <property name="classesToBeBound"> <list> </list> </property> <property name="schema" value="myschema.xsd" /> <property name="adapters"> <list> <value>com.lmig.am.claims.clip.ContactAdapter</value> </list> </property> </bean>
However, I get the following error:
Cannot convert value of type [java.lang.String] to required type [javax.xml.bind.annotation.adapters.XmlAdapter] for property 'adapters[0]': no matching editors or conversion strategy found
Any ideas what I'm doing wrong? Thanks!
source share