Hello,

I've had a problem with file uploads and Wicket 10 and I'm not sure if
my solution really works. Thus, I would appreciate feedback if
somebody is knowledgable about that task.

I want to migrate an application from Wicket 9 and Servlet API 4.0 to
Wicket 10 and Servlet API 6.0. (I.e., my web.xml declares itself as
conforming to version "6.0". My pom.xml also provides
jakarta.servlet-api:6.0.0.) FWIW: The eventual target application
server is JBoss 8.0; but I'm using Tomcat 11.0 for my tests, as that's
easier to handle in my development environment.

A test application that does a simple upload via a FileUploadField
works. (After I updated to Tomcat 11.0.13. ;-))

My problem: I recognized that Wicket 10 references
commons-fileupload2-jakarta-servlet5 and specifically uses
o.a.c.fileupload2.jakarta.servlet5.JakartaServletFileUpload in
o.a.w.p.http.servlet.MultipartServletWebRequestImpl. This seems to be
an implementation for Servlet API 5.0 -- the Apache project
commons-fileupload provides a separate implementation
commons-fileupload2-jakarta-servlet6 for Servlet API 6.0.

Has anybody on this mailing list experience with that situation: Using
a fileupload realization for servlet5 in an application that declares
itself conformant to Servlet API 6.0? Can I continue on that path or
should I expect problems by this version mismatch?

TIA for any answer,

    Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to