jersey maven project error


When i imported jersey maven project error into error i am getting below error in 'Problems' vies. How to resolve it.

Description      Resource      Path      Location      Type
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path      index.jsp      /simple-service-webapp/src/main/webapp      line 1      JSP Problem

Please advise
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark BullockQA EngineerCommented:
If you're using Tomcat, I think you need a servlet-api.jar in your classpath.
gudii9Author Commented:
i will try that.
Laxman PotadarCommented:
Use below dependency parameters in pom.xml:
<!-- Servlet -->

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

gudii9Author Commented:
sure i will try that soon
gudii9Author Commented:
sorry i was not able to try yet. Will try and let you know
gudii9Author Commented:
If you're using Tomcat, I think you need a servlet-api.jar in your classpath.

if i use other application servers like jboss etc then i do not need to put the servlet jars as above. please advise
Laxman PotadarCommented:
As you know all the web applications are built with build tools ant, maven grail etc... you are using Maven and pom - project object model manages to full all the dependancies mentioned in pom.xml and it doesn't matter which server is used. if I use eclipse with spring tool suit it has  standard template of pom, for  each type of project like dynamic web project or spring maven or spring maven web or spring mvc etc.. to full the dependancies irrespective of the server used.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.