facebook

[Closed] Error XFireServlet: Spring factory problem

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #270195 Reply

    djheath
    Member

    Here’s the exception reported by Tomcat:
    May 16, 2007 4:48:28 PM org.codehaus.xfire.transport.http.XFireServlet init
    SEVERE: Error initializing XFireServlet.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.codehaus.xfire.spring.ServiceBean’ defined in class path resource [META-INF/xfire/services.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [org.codehaus.xfire.service.ServiceFactory] for property ‘serviceFactory’; nested exception is java.lang.IllegalArgumentException: Could not load service factory:
    org.codehaus.xfire.jaxb2.JaxbServiceFactory
    . Nested exception is java.lang.ClassNotFoundException:
    org.codehaus.xfire.jaxb2.JaxbServiceFactory
    ]
    PropertyAccessExceptionsException (1 errors)
    org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [org.codehaus.xfire.service.ServiceFactory] for property ‘serviceFactory’; nested exception is java.lang.IllegalArgumentException: Could not load service factory:
    org.codehaus.xfire.jaxb2.JaxbServiceFactory
    . Nested exception is java.lang.ClassNotFoundException:
    org.codehaus.xfire.jaxb2.JaxbServiceFactory

    java.lang.IllegalArgumentException: Could not load service factory:
    org.codehaus.xfire.jaxb2.JaxbServiceFactory
    . Nested exception is java.lang.ClassNotFoundException:
    org.codehaus.xfire.jaxb2.JaxbServiceFactory

    My environment:
    Linx RHEL 4
    Tomcat 5.5.20
    Sun JDK 1.5.0_08
    All XFire libs deployed w/ project

    Note that I deployed my web services project successfully before adding an actual web service. I then created a new WSDL file (top-down approach), used the visual designer to create a few methods, and then created a web service from the WSDL and deployed it, whereupon this exception gets thrown.

    I was able to use the bottom-up approach to successfully deploy a web service.

    Anyone else seen this?

    #270231 Reply

    Riyad Kalla
    Member

    Nested exception is java.lang.ClassNotFoundException:
    org.codehaus.xfire.jaxb2.JaxbServiceFactory

    Seems like this might be the problem. Can you open your build path, go to Libraries tab, click Add library, open MyEclipse Libraries and scroll down and add the XFire JAXB library set, then redeploy your project?

    #270288 Reply

    djheath
    Member

    All the class libraries were there… I solved this by upgrading to v5.5

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] Error XFireServlet: Spring factory problem

You must be logged in to post in the forum log in