Announcement Announcement Module
Collapse
No announcement yet.
Error: Xfire With Spring 3.0.0M3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error: Xfire With Spring 3.0.0M3

    Hello Guys

    I am trying to migrate a simple example of
    xfire 1.2.6 + Spring 2.5.6 to xfire 1.2.6 + Spring 3.0.0M3

    Where xfire 1.2.6 is the last version available
    "Latest Release: 1.2.6 - May 3, 2007"

    These are the jars from the first version
    Code:
    activation-1.1.jar
    commons-logging-1.0.4.jar
    jdom-1.0.jar
    spring.jar
    spring-webmvc.jar
    stax-api-1.0.1.jar
    wsdl4j-1.6.1.jar
    wstx-asl-3.2.0.jar
    xfire-all-1.2.6.jar
    The starting with Tomcat 6.0.20 has no problems, Again Spring jars are from 2.5.6 and the other from the root and lib folder from xfire 1.2.6

    Now with Spring 3.0.0M3

    Code:
    com.springsource.org.antlr-3.0.1.jar
    org.springframework.asm-3.0.0.M3.jar
    org.springframework.beans-3.0.0.M3.jar
    org.springframework.context-3.0.0.M3.jar
    org.springframework.core-3.0.0.M3.jar
    org.springframework.expression-3.0.0.M3.jar
    org.springframework.web-3.0.0.M3.jar
    org.springframework.web.servlet-3.0.0.M3.jar
    xfire-all-1.2.6.jar
    Even If I include the missing jars in this configuration
    I receive instead this error


    21/09/2009 12:30:10 PM org.springframework.web.context.ContextLoader initWebApplicationContext
    GRAVE: Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name
    'xfire.customEditorConfigurer' defined in class path resource
    [org/codehaus/xfire/spring/customEditors.xml]: Initialization of bean failed;
    nested exception is org.springframework.beans.TypeMismatchException:
    Failed to convert property value of type
    [java.util.LinkedHashMap] to required type [java.util.Map] forproperty 'customEditors';
    nested exception is java.lang.IllegalArgumentException:
    Cannot convert value of type [org.codehaus.xfire.spring.editors.ServiceFactoryEd itor]
    to required type [java.lang.String] for property 'customEditors[org.codehaus.xfire.service.ServiceFactory]':
    no matching editors or conversion strategyfound

    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:483)
    .....
    Caused by: org.springframework.beans.TypeMismatchException:
    Failed to convert property value of type [java.util.LinkedHashMap] to required type [java.util.Map]
    for property 'customEditors'; nested exception is java.lang.IllegalArgumentException:
    Cannot convert value of type [org.codehaus.xfire.spring.editors.ServiceFactoryEd itor]
    to required type [java.lang.String] for property 'customEditors[org.codehaus.xfire.service.ServiceFactory]':
    no matching editors or conversion strategy found
    at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:383)
    .....

    Caused by: java.lang.IllegalArgumentException:
    Cannot convert value of type [org.codehaus.xfire.spring.editors.ServiceFactoryEd itor] to required type
    [java.lang.String] for property 'customEditors[org.codehaus.xfire.service.ServiceFactory]'
    : no matching editors or conversion strategy found
    at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:226)
    Because here 19.5.9. Exposing web services using XFire
    for documentation in Spring 3.0.0.M3, I have practically the same configuration

    Help about this is really appreciate

    Thanks in advanced

  • #2
    I just created a JIRA report

    http://jira.springframework.org/browse/SPR-6157

    Regards

    Comment

    Working...
    X