Geertjan's Blog

  • February 15, 2011

Embedded Jetty and Vaadin Visual Designer

Geertjan Wielenga
Product Manager
import com.vaadin.terminal.gwt.server.ApplicationServlet;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.servlet.ServletHolder;
import org.mortbay.jetty.webapp.WebAppContext;
public class VaadinServletContext {
public static void main(String[] args) throws Exception {
Server server = new Server(8080);
WebAppContext context = new WebAppContext();
ServletHolder vaadinLoader = new ServletHolder(new ApplicationServlet());
vaadinLoader.setInitParameter("application", "com.vaadin.wysiwyg.server.EditorApplication");
vaadinLoader.setInitParameter("widgetset", "com.vaadin.wysiwyg.server.WysiwygApplicationWidgetset");
context.addServlet(vaadinLoader, "/\*");
context.addServlet(vaadinLoader, "/VAADIN/\*");

Join the discussion

Comments ( 3 )
  • Arun Gupta Tuesday, February 15, 2011


    Jetty, seriously ? Where is embedded GlassFish ? :-)

  • Eduardo Costa Tuesday, October 4, 2011

    Is this a hidden plan to put VVD inside NB? :)

  • guest Tuesday, February 14, 2012

    Hi Geertjan,

    I want to embed Jetty in my NetBeans RCP application.

    Is-it a good idea of making a NetBeans Wrapped Library with all Jetty jar files or would you advise another solution?

    Thanks in Advance,


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.