You may need to register MultipartFeature as described in the Jersey documentation, section 8.3.1.2 Registration .
Create a class like this:
package com.verico.multipart.app; import javax.ws.rs.ApplicationPath; import org.glassfish.jersey.media.multipart.MultiPartFeature; import org.glassfish.jersey.server.ResourceConfig; @ApplicationPath("/") public class MultiPartApp extends ResourceConfig { public MultiPartApp() { super(MultiPartFeature.class); } }
And add the following init-param to your servlet sergeant in web.xml:
<init-param> <param-name>javax.ws.rs.Application</param-name> <param-value>com.verico.multipart.app.MultiPartApp</param-value> </init-param>
source share