Marina-plugin and multipart applications

I am trying to configure plug-maven-plugin to run my spring project, which currently works fine on tomcat7. The problem that occurs when submitting a multi-part form, I get:

java.lang.IllegalStateException: No multipart config for servlet 

I hunted through all the documents of the pier and can find how to configure it using java, but how do I get a running version of maven to work with multipart?

Now my plugin configuration:

  <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.11.v20130520</version> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <webApp> <contextPath>/servlet</contextPath> </webApp> </configuration> </plugin> 

I found this error: https://bugs.eclipse.org/bugs/show_bug.cgi?id=395000 , and then downgraded to 8.1.7, and it started working fine. It is strange that I have:

 <multipart-config> 

in my servlet configuration:

 <servlet> <servlet-name>servlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <!-- Needed for processing multipart forms ahead of the HiddenHttpMethodFilter --> <multipart-config> <location>/tmp</location> <max-file-size>20848820</max-file-size> <max-request-size>418018841</max-request-size> <file-size-threshold>1048576</file-size-threshold> <!-- 1MB --> </multipart-config> </servlet> 

So this problem should not apply here

Cheers NFV

+4
source share

Source: https://habr.com/ru/post/1493646/


All Articles