all I have a problem.
I wanna how to cross domain configuration in jetty. don't have web.xml file.
source here.
... ...
Server jetty = new Server();
HandlerList hl = new HandlerList();
hl.addHandler(sch);
jetty.setHandler(hl);
jetty.setThreadPool(new QueuedThreadPool(NumberUtils.toInt(config.getProperty("ambariplus.jetty.threadPoolSize"))));
SelectChannelConnector conn = new SelectChannelConnector();
conn.setMaxIdleTime(NumberUtils.toInt(config.getProperty("ambariplus.jetty.maxIdleTime")));
conn.setPort(NumberUtils.toInt(config.getProperty("ambariplus.jetty.port")));
MBeanContainer mbc = new MBeanContainer(ManagementFactory.getPlatformMBeanServer());
mbc.setDomain(config.getProperty("ambariplus.jmx.domain") + ".jetty");
jetty.getContainer().addEventListener(mbc);
jetty.addBean(mbc);
jetty.addConnector(conn);
jetty.setStopAtShutdown(true);
try{
jetty.start();
logger.info("Jetty started at port {} on {}", conn.getPort(), "127.0.0.1");
String s1 = StringUtils.substring(config.getProperty("ambariplus.jetty.rootServlet.contextPath"), 1);
String s2 = StringUtils.substringBetween(
config.getProperty("ambariplus.jetty.jerseyServlet.urlPattern"), "/", "/*");
...