facebook

Errors deploying web service

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #285353 Reply

    Douglas M Hurst
    Participant

    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″&gt;
    <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.

    #285355 Reply

    Douglas M Hurst
    Participant

    Also, 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.

    #285359 Reply

    Douglas M Hurst
    Participant

    I 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?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Errors deploying web service

You must be logged in to post in the forum log in