File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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(

at org.springframework.beans.BeanWrapperImpl.convertF orProperty(

at org.springframework.beans.BeanWrapperImpl.convertF orProperty(

at AutowireCapableBeanFactory.convertForProperty(Abst

at AutowireCapableBeanFactory.applyPropertyValues(Abs

at AutowireCapableBeanFactory.populateBean(AbstractAu

at AutowireCapableBeanFactory.doCreateBean(AbstractAu

... 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(

at org.springframework.beans.BeanWrapperImpl.convertI fNecessary(

... 59 more

I have tried googling this issue but could not find any proper solution. Any solution/idea/comment would be very much welcome.

wood burning stoves
subject: CastorMarshaller in Spring WS
Similar Threads
Error while Proxying DAO Classes
Need Help!!!!: Issues Deploying with Spring in JBoss
Exception while deploying
[spring] aop config
spring wont inject the entitymanager