- This topic has 2 replies, 2 voices, and was last updated 17 years, 11 months ago by Brian Fernandes.
-
AuthorPosts
-
RussMemberI have being porting several WSAD projects over to MyEclipse. I’ve selected a step process since each project has it own challenges. Four of the six projects are working fine. I am in the process of porting a WSAD web service project to MyEclipse. I have chose a top-down approach on how this new project should be built. The wizard is generating the classes. I am able to build the project without errors. I’ve added the jar files used within the WS project to the app server, so I think I have it setup properly. The deployment goes smoothly. However, when the server comes up, I can not get pass this error:
16:46:29,966 DEBUG [DefaultListableBeanFactory] Invoking custom destroy method on bean with name 'xfire.transportManager' 16:46:29,966 ERROR [XFireServlet] 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
The only thing I’ve changed in the basic wizzard is adding the jar files to the server.
Does anyone have any suggestions? Thanks for taking the time for reading my post.
Russ
RussMemberJust so you know I have tried the Web Service Explorer and I can get the WSDL but I can not run any service:
IWAB0135E An unexpected error has occurred. IOException Connection refused: connect
Brian FernandesModeratorRuss,
To fix this, change the following fragment in your services.xml file:
<serviceFactory> org.codehaus.xfire.jaxb2.JaxbServiceFactory </serviceFactory>
to
<serviceFactory>org.codehaus.xfire.jaxb2.JaxbServiceFactory</serviceFactory>
The problem here is whitespace, XFire does not seem to tolerate whitespace in the <serviceFactory> element, while it does tolerate it most other elements.
We’re taking this up with the XFire team right now and hope to have a fix in by 5.1.1. Unfortunately, everytime you regenerate the same service, whitespace will be reinserted into this element, something you’ll have to manually correct for now.Sorry for the inconvenience caused, this one will certainly be fixed in 5.1.1.
-
AuthorPosts