Hi,

I believe this is fixed in Karaf 4.2.8
https://issues.apache.org/jira/browse/KARAF-6597
So give it a try with Karaf 4.2.8

Cheers
Freeman

On Sun, Jun 7, 2020 at 11:38 AM Davi Baldin Tavares <[email protected]>
wrote:

> Hi Karafers,
>
> A) In case I use Annotation:
>
> @WebServlet(name = "Sendgrid Inbound Parse receiver", urlPatterns =
> "/inbound")
> @MultipartConfig
> public class SendGridServlet extends HttpServlet implements Servlet { … }
>
> I’m getting:
>
> 2020-06-07T11:59:47,485 | WARN  | qtp423783131-158 | HttpChannel
>             | 114 - org.eclipse.jetty.util - 9.4.20.v20190813 |
> /sendgrid/inbound
> java.lang.NoClassDefFoundError:
> org/eclipse/jetty/util/MultiPartInputStreamParser
>
> I’ve found:
>
>
> http://karaf.922171.n3.nabble.com/jsf-NoClassDefFoundError-org-eclipse-jetty-util-MultiPartInputStreamParser-td4057196.html
> https://issues.apache.org/jira/browse/CAMEL-14105
>
> B) In case I use Camel suggestion…
>
>                 Collection<Part> parts = request.getParts();
>                 parts.forEach((part) -> {
>                         log.info("Part --> {} : {} ", part.getName(),
> part.getSize() );
>                 });
>
> I’m getting:
>
> 2020-06-07T12:14:23,180 | WARN  | qtp423783131-160 | HttpChannel
>             | 114 - org.eclipse.jetty.util - 9.4.20.v20190813 |
> /sendgrid/inbound
> java.lang.IllegalStateException: No multipart config for servlet
>         at org.eclipse.jetty.server.Request.getParts(Request.java:2215)
> ~[?:?]
>
>
> C) In case I try this workaround:
> https://www.eclipse.org/lists/jetty-users/msg03294.html, I get the same
> issue as A (annotation).
>
> What is the correct way to get working with multipart in Karaf?
>
> Thanks,
>
> Davi
>
>
>

Reply via email to