Common Exceptions occured in restful webservices

1) servlet.init() for servlet jersey web application threw exception:
Soln:  Try adding jersey-multipart.jar and mimepull.jar

2)  The requested resource (Servlet Jersey REST Service) is not available.
soln:  <servlet>
    <servlet-name>Jersey REST Service</servlet-name>



    <servlet-name>Jersey REST Service</servlet-name>

3) The Resource Config instance does not contain any root resource classes.(.class file not generating in eclipse)

Soln: Delete server from eclipse and run again
        Compile the java class by creating batch file.
        To know more about batch file click here

No comments:

Post a Comment