Wildfly and Spring MVC issue in file loading

343 views
Skip to first unread message

Alessio Gennari

unread,
Dec 30, 2021, 10:35:41 AM12/30/21
to WildFly
Hi,
I am using jQuery, Spring MVC as framework to develop a web app and Wilfly as application server. I am trying to load a file in the server. To develop I am using a Windows machine and Netbeans and I am using maven to build.

I tried Wildlfy 16 and 26 and JDK 11 and 17 and the result is the same: in the developing environment everything is ok, files are loaded to server without errors, but in the destination environment (Wildfly on Linux) when I try to invoke the service to load files, I get this error:

08:18:58,394 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /xxxxxxx-web/uploadSalesPlanOrderFile: org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.RuntimeException: java.nio.file.NoSuchFileException: /opt/wildfly/wildfly-26.0.0.Final/standalone/tmp/xxxxxxx-ear-0.9.1b.ear.xxxxxxx-web-0.9.1b.war/c:\users\xxxxxx/undertow3250460709741512155upload

Can you please help me to resolve this issue?

Very kind regards.

Alessio

Alessio Gennari

unread,
Jan 3, 2022, 9:43:48 AM1/3/22
to WildFly
Hi,
I discovered that the problem depends on OS: if I run wildfly on Linux, I have the error, if I run it on windows, I got no errors. Most probably the issue depend on temporary multipart location on filesystem. Can anyone help to understand how move the location to avoid this issue?

Kind regards.

Alessio

Fanime Fartoon

unread,
May 3, 2024, 9:06:54 AM5/3/24
to WildFly
Hi, I know this is really old, but has anyone been able to solve it? 
I'm having the same problem on linux..

Hantsy Bai

unread,
May 3, 2024, 8:07:25 PM5/3/24
to WildFly
You used some Windows path in your project c:\users\xxxxxx/
Reply all
Reply to author
Forward
0 new messages