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();
context.setContextPath("/");
context.setResourceBase("./src");
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/\*");
server.setHandler(context);
server.start();
}
}
Geertjan,
Jetty, seriously ? Where is embedded GlassFish ? :-)
Is this a hidden plan to put VVD inside NB? :)
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,
JCD