Skip to main content



      Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » Jakarta EE and javax.servlet(Jakarta EE project still needs javax.servlet package)
Jakarta EE and javax.servlet [message #1837804] Sun, 07 February 2021 06:01 Go to next message
Eclipse UserFriend
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
Re: Jakarta EE and javax.servlet [message #1837807 is a reply to message #1837804] Sun, 07 February 2021 12:49 Go to previous messageGo to next message
Eclipse UserFriend
Neither, it's something that wasn't implemented for 3.20 but should just work in 3.21 as part of
https://bugs.eclipse.org/565328 . The "developer" builds at
https://www.eclipse.org/downloads/packages/release/2021-03/m2 contain the supertype
handling and other variable type changes. The interaction with tag libraries is still a work in
progress--there are a lot of questions about how to cleanly interact with classic tag handlers
when dealing with the differing package names and no runtime translation like you could expect
from the server.

[Updated on: Sun, 07 February 2021 21:05] by Moderator

Re: Jakarta EE and javax.servlet [message #1837813 is a reply to message #1837807] Mon, 08 February 2021 02:02 Go to previous message
Eclipse UserFriend
Many thanks for clarifying.
So it's just a matter of time. I'll be waiting for the new releases and keep an eye on this feature.

Thank you
Previous Topic:Delete Inactive Version ?
Next Topic:IJavaScriptUnit for plugin development
Goto Forum:
  


Current Time: Fri Jul 11 08:04:07 EDT 2025

Powered by FUDForum. Page generated in 0.03435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top