Using Eclipse 3.2.2, MyEclipse 5.1.1GA, and Tomcat 5.5, I have successfully run the HelloWorldService tutorial. Now, I am trying to write develop a web service by the top-down method; I created a WSDL file using the MyEclipseIDE tools, used the web services wizard to generate a skeleton service, and filled in the missing parts.
When I deploy the project to Tomcat 5.5, I get ClassNotFoundExceptions, the first of which is:
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
]
I checked the exploded webapp directory under my Tomcat installation; the appropriate XFire jar files are there. How can I use top-down techniques to create and deploy a web service?