Hi. I am trying to use Castor in Spring WS.
I have configured my beans as shown below:
I am using Castor1.3.1 and Spring WS 1.5.8.
But when I start my server, I see an
IllegalStateException which says:
Caused by: org.springframework.beans.ConversionNotSupportedEx ception: Failed to convert property value of type 'org.springframework.oxm.castor.CastorMarshaller' to required type 'org.springframework.oxm.AbstractMarshaller' for property 'marshaller'; nested exception is java.lang.IllegalStateException
: Cannot convert value of type [org.springframework.oxm.castor.CastorMarshaller] to required type [org.springframework.oxm.AbstractMarshaller] for property 'marshaller': no matching editors or conversion strategy found
at org.springframework.beans.BeanWrapperImpl.convertI fNecessary(BeanWrapperImpl.java:462)
at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:499)
at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:493)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.convertForProperty(Abst ractAutowireCapableBeanFactory.java:1363)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1322)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:517)
... 53 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.springframework.oxm.castor.CastorMarshaller] to required type [org.springframework.oxm.AbstractMarshaller] for property 'marshaller': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
at org.springframework.beans.BeanWrapperImpl.convertI fNecessary(BeanWrapperImpl.java:447)
... 59 more
I have tried googling this issue but could not find any proper solution. Any solution/idea/comment would be very much welcome.
Thanks,
Samrat