Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 675

Eclipse complains 'The superclass "jakarta.servlet.http.HttpServlet" was not found' even though I'm using a Servlet 3.0 project and Tomcat 9.0 server

$
0
0

I am picking up an old project which has a lot of old dependencies.I am using "Eclipse IDE for Enterprise Java and Web Developers".After importing the source to Eclipse, Eclipse is complaining all my jsp files that

The superclass "jakarta.servlet.http.HttpServlet" was not found on the Java Build Path

In pom.xml, I see there is this dependency:

<dependency><groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>3.0.1</version><scope>provided</scope></dependency>

I went to google about the error and read a bit of javax vs jakarta history.The thing is, because this is an old project that is still running on the server... can I stick with javax and not jakarta?

In Eclipse, under Project Facets, I have "Dynamic Web Module" checked and it is using Apache Tomcat v9.0 locally.Under Server settings, I have "Tomcat v9.0 Server" at localhost for running this project.

Another thing I don't know if it has anything to do with setup of my Tomcat or project settings, which is that on pom.xml, I get an error about missing a lot of artifacts, like "jini:jsk-lib:jar", "jini:reggie:jar", "jini:start:jar", etc...


Viewing all articles
Browse latest Browse all 675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>