I'm brand-new to Jersey/JAX-RS/RESTful Web Services/etc. and I'm having difficulty with a Jersey archetype called jersey-quickstart-webapp
. I'm attempting to use it with Eclipse, Maven, and Tomcat v7 or v8 (I've tried both).
First I got a JSP error:
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path.
I resolved that error with this SO question regarding the error. Apparently Maven wasn't treating my project as a Dynamic Web Application.
Then I got a warning about:
Build path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace that are strictly compatible with this environment
. I resolved the second issue with another SO question on the matter. I was originally using JavaSE-1.8.
Finally, I had one last error:
Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.
Again, I checked SO on the matter and excluded the associated raw classpath entry from the set of potential publish/export dependencies.
However, I am still given a 404 on my project and I cannot figure out why. I'm using a pom.xml file for this project. The tutorial I'm following is telling me that the correct URL to be using here is http://localhost:8080/messenger/
.