- reduce Jetty debug logging

- fix Context path initialization
pull/1/head
reger 12 years ago
parent bc6ebb3c06
commit 5111841e5b

@ -71,6 +71,10 @@ net.yacy.kelondro.logging.LogalizerHandler.enabled = false
net.yacy.kelondro.logging.LogalizerHandler.debug = false
net.yacy.kelondro.logging.LogalizerHandler.parserPackage = net.yacy.kelondro.logging
# Poperties for the HttpServer (Jetty)
org.eclipse.jetty.io.level = INFO
org.eclipse.jetty.http.HttpParser.level = INFO
org.apache.http.level = OFF
org.apache.commons.httpclient.level = OFF
httpclient.wire.level = OFF

@ -74,7 +74,7 @@ public class HttpServer {
//add SolrServlet
ServletContextHandler solrContext = new ServletContextHandler(ServletContextHandler.SESSIONS);
solrContext.setContextPath("/solr/");
solrContext.setContextPath("/solr");
solrContext.addServlet(new ServletHolder(Servlet404.class),"/*");
SolrServlet.initCore(sb.index.fulltext().getDefaultEmbeddedConnector());
@ -83,8 +83,9 @@ public class HttpServer {
ServletContextHandler htrootContext = new ServletContextHandler(ServletContextHandler.SESSIONS);
htrootContext.setContextPath("/");
ServletHolder sholder = new ServletHolder(YaCyDefaultServlet.class);
sholder.setInitParameter("resourceBase", "htroot");
sholder.setInitParameter("resourceBase", "htroot");
htrootContext.addServlet(sholder,"/*");
htrootContext.setWelcomeFiles(new String[]{"index.html"});
ContextHandlerCollection servletContext = new ContextHandlerCollection();
servletContext.setHandlers(new Handler[] { solrContext, htrootContext });

Loading…
Cancel
Save