You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Усманов Азат Анварович <us...@ieml.ru> on 2021/05/15 05:13:51 UTC

Ответить: Tomcat 10 and import org.apache.commons.fileupload.FileItem problem

Hi John! Current version of the migration tool available on Tomcat's website is 1.0.0, not 0.2.0. .try using it,and see if that solves the issue.


С уважением,
Азат Усманов
Отдел разработки программного обеспечения
Казанский инновационный университет имени В.Г.Тимирясова


________________________________
От: Orendt, John <jo...@medtronic.com.INVALID>
Отправлено: 15 мая 2021 г. 1:17
Кому: users@tomcat.apache.org <us...@tomcat.apache.org>
Тема: Tomcat 10 and import org.apache.commons.fileupload.FileItem problem

Hi

I found sample code for an UploadServlet with these imports

import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;

This worked well with Tomcat 9.

However, when I switched to a new Windows 10 device, I installed Tomcat 10.05

After, replacing javax with jakara in imports most Servlets worked well, with the exception of UploadServlet Which uses the above imports.

I get a compile error :

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files

Using import jakarta.servlet.http.HttpServletRequest also does not work.

I may be on the wrong path.

Is there a newer version of jakartaee-migration-0.2.0-shaded.jar available?

Your insights are appreciated.

John Orendt
John.p.orendt@medtronic.com

[CONFIDENTIALITY AND PRIVACY NOTICE] Information transmitted by this email is proprietary to Medtronic and is intended for use only by the individual or entity to which it is addressed, and may contain information that is private, privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please delete this mail from your records. To view this notice in other languages you can either select the following link or manually copy and paste the link into the address bar of a web browser: http://emaildisclaimer.medtronic.com