Jakarta EE and javax.servlet [message #1837804] |
Sun, 07 February 2021 11:01 |
Raffaele Tripodo Messages: 2 Registered: February 2021 Location: Prato, Italy |
Junior Member |
|
|
Hello,
I'm testing Jakarta EE, so I installed Tomcat 10, set an Apache Tomcat 10 server instance in my Eclipse IDE and created a new Dynamic Web Project assigning the Tomcat 10 runtime.
Everything works fine and JSPs are translated in Jakarta Servlets but Eclipse IDE still reports an annoying error "The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path".
It's just an annoying warning because JSP file works fine, but in a project with many files it could be very frustrating.
I could "solve" the problem adding a servlet-api.jar from Tomcat 9 in order to have the javax package in the build path, but I think it could be better if Eclipse didn't search for the wrong package.
Can you please help me understand if I'm making some mistakes or if it's a real bug?
Thanks
Raffaele Tripodo
Raffaele Tripodo
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02023 seconds