Home > Software design >  Which Eclipse version is compatible with Tomcat 10, or do I go back to Tomcat 9?
Which Eclipse version is compatible with Tomcat 10, or do I go back to Tomcat 9?

Time:06-27

I'm starting a web development project with a new install of Eclipse for Web developers; I installed Eclipse 2020-06 and Tomcat 10. But evidently those are not compatible; the first example JSP I entered has an error saying that HTTPServlet is not on the path.

On looking further, I discovered that the servlet library pathnames have changed; used to be javax... and are now jakarta... I'm assuming that's the problem, though I don't have definite confirmation of that.

Should I be using a newer version of eclipse, or an older version of Tomcat? Or is there something else I should be using?

EDIT: also using Java 11.0

CodePudding user response:

So, you are assuming right... There is a change in package name for tomcat 9 to tomcat 10 from javax.* to jakarta.* respectively....

for your project to work,

Either you downgrade to tomcat 9 and keep using the same package (javax)

Or you change change the package name to use jakarta and keep using tomcat 10...

  • Related