Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 63733 invoked from network); 17 Nov 2009 20:12:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 20:12:35 -0000 Received: (qmail 74372 invoked by uid 500); 17 Nov 2009 20:12:33 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 74292 invoked by uid 500); 17 Nov 2009 20:12:33 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 74282 invoked by uid 99); 17 Nov 2009 20:12:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 20:12:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 20:12:25 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 714DE71C88A; Tue, 17 Nov 2009 12:12:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 6D6D871C887 for ; Tue, 17 Nov 2009 12:12:04 -0800 (PST) Date: Tue, 17 Nov 2009 12:12:04 -0800 (PST) From: Chris Hostetter To: solr-user@lucene.apache.org Subject: Re: EmbeddedSolrServer: java.lang.NoClassDefFoundError: javax/servlet/ServletRequest In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : I'm newbie using Solr and I'd like to run some tests against our data set. I : have successful tested Solr + Cell using the standard Http Solr server : and now we need to test the Embedded solution and when a try to start the : embedded server i get this exception: : : INFO: registering core: : Exception in thread "Thread-1" java.lang.NoClassDefFoundError: : javax/servlet/ServletRequest ... : The EmbeddedSolrServer depends on servlet-api? ...unfortunately yes, the core solr code base has a dependency on the servlet API because it can parse requests coming from an HttpServletRequest. If you are interested in providing a patch it would probably be relatively easy to refactor that parsing code into the src/webapp directory (which was intended to be the only place with servlet api dependencies) : I'm facing a lack of documentation about EmbeddedSolrServer, all : documentation is at http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer? yep, that's pretty much it. EmbeddedSolr tends to be fairly advanced usage, for people you are not only familiar with java, but also have a particular need to embed directly into their app instead of runing SOlr as a server. -Hoss