- This topic has 2 replies, 1 voice, and was last updated 16 years, 5 months ago by Douglas M Hurst.
-
AuthorPosts
-
Douglas M HurstParticipantI 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.HurstHomeWSImplMy 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.
Douglas M HurstParticipantAlso, When I look at the project properties
Java Build Path, it indicates EVERYTHING under HurstHomeT/src should be included.
But when I rebuild manually, no class files are built in
WEB-INF/classes/hursthome/ws
In fact, the directory is not being created.
Douglas M HurstParticipantI figured it out… I guess.
For some reason it didn’t like the name
hursthome.ws
I started over and used
hursthome.webservice
and it built and deployed ok. Go figure?
-
AuthorPosts