protected void initServer() throws Exception {
LOG.info("Initializing Jetty server...");
ServletHolder sh = new ServletHolder(ServletContainer.class);
sh.setInitParameter(ServletContainer.RESOURCE_CONFIG_CLASS, PackagesResourceConfig.class.getName());
sh.setInitParameter(PackagesResourceConfig.PROPERTY_PACKAGES, getPackages());
sh.setServlet(new SpringServlet());
server = new Server(getPort());
Context context = new Context(server, getBasePath(), Context.SESSIONS);
Map<String, String> params = new HashMap<String, String>();
params.put(ContextLoaderListener.CONFIG_LOCATION_PARAM, getSpringContextLocation());