: I am trying to provide an embedded server to a web application deployed in a : servlet container (like tomcat).
If you are trying to use Solr inside another webapp, my suggestion would just be to incorporate the existing Solr servlets, jsps, dispatch filter, and web.xml specifics from solr inot your app, and let them do their own thing -- it's going to make your life much easier from an "upgrade" standpoint. Better still: run solr.war as it's own webapp in the same servlet container. -Hoss