Return-Path: X-Original-To: apmail-lucene-general-archive@www.apache.org Delivered-To: apmail-lucene-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C39E410496 for ; Wed, 19 Jun 2013 15:22:50 +0000 (UTC) Received: (qmail 37431 invoked by uid 500); 19 Jun 2013 15:22:49 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 37160 invoked by uid 500); 19 Jun 2013 15:22:49 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 37146 invoked by uid 99); 19 Jun 2013 15:22:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 15:22:48 +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 (athena.apache.org: domain of pradeepkumardv@gmail.com designates 209.85.223.180 as permitted sender) Received: from [209.85.223.180] (HELO mail-ie0-f180.google.com) (209.85.223.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 15:22:44 +0000 Received: by mail-ie0-f180.google.com with SMTP id f4so13547481iea.39 for ; Wed, 19 Jun 2013 08:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9Sq/Xb9bsXvLCBJjL2mBKHAwShOGMYOT1VOLPA4lMJY=; b=Gn1bIADGxvEc+rauf3+PJ7igyag4nCvOQOg9sBRqWRiE6MC6bxHto0XtDojlaC+VF4 CHYs7d/6rsMjujv3psOTgS+ZBh1givjbPctgr55Od0FpRg5/luy/HxNJOoAtoEVeW3Qw QFNWV+Nx7LQenAjP2/xyB6mSKGU2yLyHsFJewjayMa2o61ezEks0Wn+7AgoQEU4QQdT4 Tirck2WW6uoIMPBhDDfBXqp5OcQ6MK1gRSaQu7+KnCw6ewy68taK8IEdgC5R4feaB4to gqNrF8YWRGBcZwgIk27wH6P/x9t1tq+qU23ziso0/ISX4Ham30YyGiUMwkknGPqpB5b9 //wQ== MIME-Version: 1.0 X-Received: by 10.50.87.71 with SMTP id v7mr1648734igz.29.1371655343894; Wed, 19 Jun 2013 08:22:23 -0700 (PDT) Received: by 10.64.106.6 with HTTP; Wed, 19 Jun 2013 08:22:23 -0700 (PDT) In-Reply-To: <006d01ce6cfc$93f83a00$bbe8ae00$@thetaphi.de> References: <006d01ce6cfc$93f83a00$bbe8ae00$@thetaphi.de> Date: Wed, 19 Jun 2013 20:52:23 +0530 Message-ID: Subject: Re: problem with solr 4.3.1 installation From: pradeep kumar To: general@lucene.apache.org Content-Type: multipart/alternative; boundary=089e0103ef528702e104df83654b X-Virus-Checked: Checked by ClamAV on apache.org --089e0103ef528702e104df83654b Content-Type: text/plain; charset=ISO-8859-1 Thanks Uwe for your quick reply. I got the the problem of setting classpath now. But i have few question based on your reply. May not be related to the topic of the thread. Question 1 related to the point - *"In general it is not recommended to install Solr inside a custom webapp container"* where will solr runs in production environments? i was thinking that it has to run on some web containers. Jetty is only for playing around/testing. Please correct me if i am wrong. Question 2 related to the point - "*Future versions of Solr may no longer ship with a WAR file because it causes too many problems, because Solr does not work well with other webapps in the same JVM"* * * how can we use solr with any app say my own web app (typically, a spring mvc or any EE app) if it is not shipped as war? Can't we use Solr for solving problem of complex/advance search implementation (time consuming search queries from RDBMS) that normally exists in any web app? say any inventory management or warehouse management apps. My requirement is for inputting data to reporting engine like crystal/jasper and to generate analytic chars for our dashboards. After seeing your reply, i started thinking that solr is not the one for my requirement. Please clarify. Thanks a ton. Pradeep * * On Wed, Jun 19, 2013 at 8:22 PM, Uwe Schindler wrote: > Hi, > > See http://wiki.apache.org/solr/SolrJBoss#Configuring_Solr_Home for > instructions (scroll down and look for the JNDI options). The problem is > that SOLR_HOME must be known to JBoss, otherwise the webapp cannot locate > any files from the config. > > In general it is not recommended to install Solr inside a custom webapp > container (means installing the WAR file in tomcat, jboss or whatever). You > should use the included web engine (provided by jetty) with a recent JDK > version. The example folder has a start.jar. You can start the correctly > configured Jetty engine with solr by running "java -jar start.jar" from the > example folder. > > Future versions of Solr may no longer ship with a WAR file because it > causes too many problems, because Solr does not work well with other > webapps in the same JVM (it has very special garbage collection and memory > requirements), so it should run as a separate server in a separate VM. > > Uwe > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de > > > > -----Original Message----- > > From: pradeep kumar [mailto:pradeepkumardv@gmail.com] > > Sent: Wednesday, June 19, 2013 3:56 PM > > To: general@lucene.apache.org > > Subject: problem with solr 4.3.1 installation > > > > hello all, > > > > I have a problem with installing solr 4.31. > > > > Giving you a background of what i am doing: > > > > I am trying to evaluate Solr as our search in engine for my project > where we > > have requirement multiple complex search functionality, reporting and > > analytics. We deal with lakhs of records from RDBMS tables which are > linked. > > Just to give you an idea, Order, item, item_details, files, etc. i > proposed solr > > and told about lucidworks to rest of my technical team and were > impressed. > > > > My reasons for using solr is to achive fastrer search, input data to > report > > engine and analytic graphs for our dashboard. > > > > Other alternative to my solr approach is off-line db with star schema and > > from that, get data fro reports or analytics. > > > > But, I am facing few problems in installing. I some how feel that > installation > > guide is not clear. > > > > I am missing something? > > > > > > > > Downloaded solr 4.3.1 binaries. Extracted to my local drive. Set > SOLR_HOME > > class path in evn variables pointing C:\solr-4.3.1\example\solr and > > SOLR_HOME/bin in path variable. > > > > Copied solr-4.3.1.war from SOLR_HOME/dist/ to my local jboss instance. > > > > Started my jboss server. > > > > Here is the log > > > > 16:05:13,715 ERROR [org.apache.solr.core.CoreContainer] > > (coreLoadExecutor-3-thread-1) Unable to create core: collection1: > > org.apache.solr.common.SolrException: Could not load config for > > solrconfig.xml > > > > at > > org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:91 > > 9) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at > > org.apache.solr.core.CoreContainer.create(CoreContainer.java:984) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at > > org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at > > org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > > [rt.jar:1.6.0_29] > > > > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > > [rt.jar:1.6.0_29] > > > > at > > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > > [rt.jar:1.6.0_29] > > > > at > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > > [rt.jar:1.6.0_29] > > > > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > > [rt.jar:1.6.0_29] > > > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecut > > or.java:886) > > [rt.jar:1.6.0_29] > > > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja > > va:908) > > [rt.jar:1.6.0_29] > > > > at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29] > > > > Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in > > classpath or 'solr\collection1\conf/', cwd=C:\jboss-as-7.1.1.Final\bin > > > > at > > org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoade > > r.java:337) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at > > org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.ja > > va:302) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at org.apache.solr.core.Config.(Config.java:122) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at org.apache.solr.core.Config.(Config.java:92) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at org.apache.solr.core.SolrConfig.(SolrConfig.java:119) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > at > > org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:91 > > 6) > > [solr-core-4.3.1.jar:4.3.1 1491148 - shalinmangar - 2013-06-09 12:15:33] > > > > ... 11 more > > > > Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in > > classpath or 'solr\collection1\conf/', cwd=C:\jboss-as-7.1.1.Final\bin > > > > > > > > Please see the log attached. > > > > > > > > Another thing i am looking for is; > > > > how can i use data from solr for my reporting engine say Crystal/jsper > and > > analytics is achieved. > > > > Thanks, > > > > Pradeep > > --089e0103ef528702e104df83654b--