lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: problem with solr 4.3.1 installation
Date Wed, 19 Jun 2013 14:52:10 GMT
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.<init>(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.<init>(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.<init>(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


Mime
View raw message