- This topic has 2 replies, 2 voices, and was last updated 17 years, 6 months ago by djheath.
-
AuthorPosts
-
djheathMemberHere’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.JaxbServiceFactoryjava.lang.IllegalArgumentException: Could not load service factory:
org.codehaus.xfire.jaxb2.JaxbServiceFactory
. Nested exception is java.lang.ClassNotFoundException:
org.codehaus.xfire.jaxb2.JaxbServiceFactoryMy environment:
Linx RHEL 4
Tomcat 5.5.20
Sun JDK 1.5.0_08
All XFire libs deployed w/ projectNote 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?
Riyad KallaMemberNested exception is java.lang.ClassNotFoundException:
org.codehaus.xfire.jaxb2.JaxbServiceFactorySeems 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?
djheathMemberAll the class libraries were there… I solved this by upgrading to v5.5
-
AuthorPosts