10:50:08.567 [main] DEBUG o.e.j.a.ServletContainerInitializersStarter - Calling ServletContainerInitializer org.springframework.web.SpringServletContainerInitializer
10:50:12.591 [main] INFO / - No Spring WebApplicationInitializer types detected on classpath
Server server = new Server(5050);
MBeanContainer mbContainer = new MBeanContainer(ManagementFactory.getPlatformMBeanServer());
server.addBean(mbContainer);
String resourceDir = "src/main/resources/web";
WebAppContext context = new WebAppContext();
context.setResourceBase(resourceDir);
context.setDescriptor(resourceDir+"/WEB-INF/web.xml");
context.setContextPath("/");
context.setParentLoaderPriority(true);
context.setConfigurations(new Configuration[]
{
new AnnotationConfiguration(),
new WebInfConfiguration(),
new WebXmlConfiguration(),
new MetaInfConfiguration(),
new FragmentConfiguration(),
new EnvConfiguration(),
new PlusConfiguration(),
new JettyWebXmlConfiguration()
});
server.setHandler(context);
server.start();
server.join();
ps, is there a default set of configurations I can use or do I need to spell out the above set?
Thanks,
David