I had a method:
@POST
@Consumes(\"multipart/form-data\")
@Produces( {\"text/xml\"})
public Response processForm(
@FormDataParam(\"myparam\") InputStream
I was trying to use Jersey 2 for fileupload. I wanted to avoid creating a custom Application or ResourceConfig class to enable MultiPart. It is not well documented, but if you want to add Multipart functionality, all you have to do is add this to your Jersey servlet config in web.xml:
jersey.config.server.provider.classnames
org.glassfish.jersey.filter.LoggingFilter;org.glassfish.jersey.media.multipart.MultiPartFeature
As you can see, I also added a loggingfilter.