I went through the Creating a Web Service (Code-First) tutorial successfully. I then attempted to integrate the same process into my web program.
All appears to have gone according to script, but when I deploy Tomcat, I get the following errors.
SEVERE: Servlet /HurstHomeT threw load() exception
PropertyAccessExceptionsException (2 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property ‘serviceClass’; nested exception is java.lang.IllegalArgumentException: Class not found: hursthome.ws.IHurstHomeWS
java.lang.IllegalArgumentException: Class not found: hursthome.ws.IHurstHomeWS
.
.
.
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property ‘implementationClass’; nested exception is java.lang.IllegalArgumentException: Class not found: hursthome.ws.HurstHomeWSImpl
java.lang.IllegalArgumentException: Class not found: hursthome.ws.HurstHomeWSImpl
My services.xml looks as follows:
<?xml version=”1.0″ encoding=”UTF-8″?>
<beans xmlns=”http://xfire.codehaus.org/config/1.0″>
<service>
<name>HurstHomeWS</name>
<serviceClass>hursthome.ws.IHurstHomeWS</serviceClass>
<implementationClass>
hursthome.ws.HurstHomeWSImpl
</implementationClass>
<style>wrapped</style>
<use>literal</use>
<scope>application</scope>
</service>
</beans>
and my web.xml did pickup
<servlet>
<servlet-name>XFireServlet</servlet-name>
<servlet-class>org.codehaus.xfire.transport.http.XFireConfigurableServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
.
.
<servlet-mapping>
<servlet-name>XFireServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
The packages and classes hursthome.ws and HurstHomeWSImpl and HurstHomeWS do exist, but ARE NOT being deployed along with all the other classes.
In the Creating a Web Service (Code-First) tutorial, I don’t remember doing anything special to have com.genuitec.myeclipse.wsexample(.client) to deploy.
Any help will be appreciated.