Exception :com.sun.jersey.spi.inject.Errors$ErrorMessagesException

It seems your missing few jars in your project.Try adding these to your project:

jersey-multipart.jar

mimepull.jar

If you are using maven, you can add this dependency:

<dependency>
        <groupId>com.sun.jersey.contribs</groupId>
        <artifactId>jersey-multipart</artifactId>
        <version>1.8</version>
    </dependency>

Change the version of jar if you need

Also make sure that the version of your jersey-multipart jar should be same as the version of jersey bundle jar


Forgetting to add @POST or @Get on top of the method name will also cause this error


It faced me the same error because having same @Path annotations with the same path names( strings).

@Path('samepath')   /// samepath cause Jersey Error at run time.
/* Method 1*/

@Path('samepath')
/* Method 2 */