Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 439942

Summary: MultipartConfig
Product: [RT] Jetty Reporter: esfomeado esfomeado <vps1992>
Component: servlet-3.1Assignee: Jan Bartel <janb>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 9.2.1   
Target Milestone: 9.2.x   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description esfomeado esfomeado CLA 2014-07-19 16:32:47 EDT
Hi i'm using in my project the jetty embedded. I'm trying to upload a file so i have used the system that comes with the servlet 3.0+.
I have added the @MultipartConfig but when i try to upload the file i get this: 

no multipart config for servlet

I'm certain that i have everything configured correctly so it must be a bug.
Comment 1 Jan Bartel CLA 2014-07-19 19:52:49 EDT
 esfomeado,

Please provide more details about your setup. In particular how are you configuring jetty? Can you provide sample code/a test harness?

Have you ensured that you have enabled annotations processing? See http://www.eclipse.org/jetty/documentation/current/annotations.html


Jan
Comment 2 esfomeado esfomeado CLA 2014-07-20 05:37:22 EDT
Jetty config:
http://pastebin.com/kA4CbYpG

This is my upload servlet
http://pastebin.com/mBqLeBzF
Comment 3 Jan Bartel CLA 2014-07-21 05:22:03 EDT
Esfomeado,

As I mentioned previously, you will need to enable annotations processing. Here's an embedded example: https://github.com/eclipse/jetty.project/blob/master/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ServerWithAnnotations.java

I'll close the issue for now, but if you enable annotations processing and you still have problems, please reopen with full logs, stacktraces, example code etc.

thanks
Jan