If you are going to run the unit tests in Eclipse, then for the given JUnit run configuration, add the -Dsolr.solr.home=<your solr dir> to the VM arguments section of the run configuration for the given test.
On Tue, Jan 19, 2010 at 12:34 AM, Wangsheng Mei <hairr...@gmail.com> wrote: > I this it is. > > solr has a default servlet container "jetty" with the downloaded package > under folder "example" . > but I use tomcat a lot, so I deployed solr on tomcat using solr.war. > > I don't know why solr will use jetty as default. > > 2010/1/19 Siv Anette Fjellkårstad <s...@steria.no> > > > I apologize for the newbie questions :| > > Do I need a servlet container to run the tests? > > > > Kind regards, > > Siv > > > > > > ________________________________ > > > > Fra: Wangsheng Mei [mailto:hairr...@gmail.com] > > Sendt: ti 19.01.2010 08:49 > > Til: solr-user@lucene.apache.org > > Emne: Re: build path > > > > > > > > maybe you should add "-Dsolr.solr.home=<your solr home>" to your > JAVA_OPTS > > before your servlet container starts. > > > > > > 2010/1/19 Siv Anette Fjellkårstad <s...@steria.no> > > > > > Hi! > > > I try to run the tests of Solr 1.4 in Eclipse, but a most of them > fails. > > > The error messages indicate that I miss some config files in my build > > path. > > > Is there any documentation of how to get Solr up and running in > Eclipse? > > If > > > not; How did you set up (build path for) Solr in Eclipse? > > > > > > Another question; Some of the tests also fail when I run ant test. Is > > that > > > normal? > > > > > > Sincerely, > > > Siv > > > > > > > > > This email originates from Steria AS, Biskop Gunnerus' gate 14a, N-0051 > > > OSLO, http://www.steria.no <http://www.steria.no/> . This email and > any > > attachments may contain > > > confidential/intellectual property/copyright information and is only > for > > the > > > use of the addressee(s). You are prohibited from copying, forwarding, > > > disclosing, saving or otherwise using it in any way if you are not the > > > addressee(s) or responsible for delivery. If you receive this email by > > > mistake, please advise the sender and cancel it immediately. Steria may > > > monitor the content of emails within its network to ensure compliance > > with > > > its policies and procedures. Any email is susceptible to alteration and > > its > > > integrity cannot be assured. Steria shall not be liable if the message > is > > > altered, modified, falsified, or even edited. > > > > > > > > > > > -- > > ??? > > > > > > > > This email originates from Steria AS, Biskop Gunnerus' gate 14a, N-0051 > > OSLO, http://www.steria.no. This email and any attachments may contain > > confidential/intellectual property/copyright information and is only for > the > > use of the addressee(s). You are prohibited from copying, forwarding, > > disclosing, saving or otherwise using it in any way if you are not the > > addressee(s) or responsible for delivery. If you receive this email by > > mistake, please advise the sender and cancel it immediately. Steria may > > monitor the content of emails within its network to ensure compliance > with > > its policies and procedures. Any email is susceptible to alteration and > its > > integrity cannot be assured. Steria shall not be liable if the message is > > altered, modified, falsified, or even edited. > > > > > > -- > 梅旺生 >