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?