I am mounting a new server, as always in an Eclipse Mars (4.5.2) Eclipse Java EE IDE for Web Developers , I had a problem with the installation of the server, I deleted it and I found this bug that is already solved, but now, when importing the project base tells me...
The import javax.servlet cannot be resolved
I know that I can import the library manually... but taking into account that I have the correct eclipse it does not have to be done, besides that would give me future problems....
Solved...
:S
. I put it here in case it happens to someone in the future (this had never happened to me before).NOTE: you must have Eclipse Java EE installed, otherwise don't try this solution!!!
The previous failed installation of tomcat that led me to the bug had been stuck in the eclipse configurations ( that happens to me by manually deleting tomcat ).
In the Project Properties > Targeted runtimes my old tomcat installation (the one that no longer existed) was selected and the new one was unchecked:
NOTE: when I went back in to make the capture it only shows the valid tomcat, but the first time I entered there were 2 instances of tomcat and the wrong one was marked! Although if you uncheck the good one, you can reproduce the error.
:)