Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85A76F4DB for ; Thu, 21 Mar 2013 21:22:50 +0000 (UTC) Received: (qmail 55089 invoked by uid 500); 21 Mar 2013 21:22:46 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 55002 invoked by uid 500); 21 Mar 2013 21:22:46 -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 54993 invoked by uid 99); 21 Mar 2013 21:22:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 21:22:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of furkankamaci@gmail.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-ob0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2013 21:22:41 +0000 Received: by mail-ob0-f171.google.com with SMTP id x4so3358237obh.2 for ; Thu, 21 Mar 2013 14:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=2ChH5dmNIGGnjvUS+wQQdoB96XSWjYD+W5R+ZT6jCmo=; b=EtyAFzY3cjbKyvFdYs3EXjc21Xs9xyOqXRcbGG96Wr7jTZAaRk/jun55GnJkQqAV+c NvWAzo1J+FKdXF7yFziKHEgTHT5Oy3R15Lq6KrJtT+cqDQ8vLKYqDwbtJu25Ra0PseNM 2S4eKmKgAnW/wvtng8ZNC2kKNv0m5dFTWeMKcF83PV6Cg573CfGOcgr524QR2n4V/Xnw Hqcmt7rQChQ7OMxpFYHyBcenSgSGiNqc6x3RIxgZSey5VlMqh8Q5XKI+FCJ/+0n8Zf2c eCjsaiR57G+CKTz93aBspDo/Srpdzr7PqU7xcVOIzQu1D3rUp+UFneVERozxH7iAWAP+ TydQ== MIME-Version: 1.0 X-Received: by 10.60.31.42 with SMTP id x10mr7883598oeh.18.1363900940331; Thu, 21 Mar 2013 14:22:20 -0700 (PDT) Received: by 10.76.123.239 with HTTP; Thu, 21 Mar 2013 14:22:20 -0700 (PDT) In-Reply-To: <514B7417.2040904@elyograg.org> References: <514B7417.2040904@elyograg.org> Date: Thu, 21 Mar 2013 23:22:20 +0200 Message-ID: Subject: Re: How can I compile and debug Solr from source code? From: Furkan KAMACI To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=e89a8fb1ff660efe4d04d875ef50 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1ff660efe4d04d875ef50 Content-Type: text/plain; charset=ISO-8859-1 Using embedded is an option. However I see that there is a .war file inside Solr source code. So that means that I can generate a .war file and deploy it to Tomcat or something like that. My main question arises here. How can I generate a .war file from my customized Solr source code? That's why I mentioned tomcat. Any ideas? 2013/3/21 Shawn Heisey > On 3/21/2013 6:56 AM, Furkan KAMACI wrote: > >> I use Intellij Idea 12 and Solr 4.1 on a Centos 6.4 64 bit computer. >> >> I have opened Solr source code at Intellij IDEA as explained >> documentation. >> I want to deploy Solr into Tomcat 7. When I open the project there are >> configurations set previosly (I used ant idea command before I open the >> project) . However they are all test configurations and some of them are >> not passed test (this is another issue, no need to go detail at this >> e-mail). I have added a Tomcat Local configuration into configurations but >> I don't know which one is the main method of Solr and is there any >> documentation that explains code. i.e. I want to debug a point what Solr >> receives from when I say -index from nutch and what Solr does? >> >> I tried somehing to run code (I don't think I could generate a .war or an >> exploded folder) an this is the error that I get:(I did't point any >> artifact for edit configurations) >> >> Error: Exception thrown by the agent : java.net.**MalformedURLException: >> Local host name unknown: java.net.UnknownHostException: me.local: >> me.local: >> Name or service not known >> > > There actually isn't a way to execute Solr itself, it doesn't have a main > method. Solr is a servlet, so it requires a servlet container to run. The > container that it ships with is jetty. You have mentioned tomcat. > > I don't know how you might go about running tomcat and Solr within > IntelliJ. Perhaps someone else here might. The debugging instructions on > the wiki for IntelliJ seem to indicate that you debug remotely and start > the included jetty with some special options: > > http://wiki.apache.org/lucene-**java/HowtoConfigureIntelliJ > > If you do figure out how to get IntelliJ to deploy directly to a locally > installed tomcat, please update the wiki with the steps required. > > Thanks, > Shawn > > --e89a8fb1ff660efe4d04d875ef50--