File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

CastorMarshaller in Spring WS

Samrat Debroy
Greenhorn

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.

Thanks,
Samrat
 
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