Does Jetty still have WebAppContext?

I’m trying to run my spring MVC using an embedded instance. I found this question: Jetty Embedded Spring application

I am using jetty version: 7.6.2.v20120308, javax servlet: 2.5

I am using IntelliJ and the class WebAppContext doesn’t seem to resolve to any package/namespace. Does this class exist or has it been replaced?

import org.eclipse.jetty.server.Server;
public static void main(String[] args) throws Exception {

        Server server = new Server(8080);

        WebAppContext ????????


Just to make sure, does your pom.xml contain this dependency ?


Leave a Reply

Your email address will not be published. Required fields are marked *