eclipse-ee4j / eclipse-ee4j/jersey

Maven ArtifactId=jersey-quickstart-webapp seems to miss Dependency to javax.servlet

Open
#3,415 4 comments 0 reactions 0 assignees View on GitHub
Component: examples Component: website Priority: Trivial Type: Bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

I go trough the Tutorial: [https://jersey.java.net/documentation/latest/getting-started.html#new-webapp](https://jersey.java.net/documentation/latest/getting-started.html#new-webapp)

After generating the WebApp project with Maven, and importing into Eclipse i have a similar error to : [http://stackoverflow.com/questions/22756153/the-superclass-javax-servlet-http-httpservlet-was-not-found-on-the-java-build](http://stackoverflow.com/questions/22756153/the-superclass-javax-servlet-http-httpservlet-was-not-found-on-the-java-build)

After adding javax.servlet to dependencies my errors disappeared.
See [http://stackoverflow.com/a/22756202/1528488](http://stackoverflow.com/a/22756202/1528488)

Is the javax.servlet missing in the Archetype?

--------------------------------------------------------------------------------------------
I also have the following Exceptions, do they also Warnings, are they to be expected? If yes can the Tutorial pls mention that?

Broken single-root rule: Only one element with a deploy path of "/" is allowed for a web project or an EAR project
Broken single-root rule: The output folder for a web project must be /WEB-INF/classes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.