wood burning stoves*
The moose likes Web Services and the fly likes CastorMarshaller in Spring WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "CastorMarshaller in Spring WS" Watch "CastorMarshaller in Spring WS" New topic

CastorMarshaller in Spring WS

Samrat Debroy

Joined: Oct 23, 2009
Posts: 13
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.

I agree. Here's the link: http://aspose.com/file-tools
subject: CastorMarshaller in Spring WS