RE: solr 4.5.0 configuration Error: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config file .../solrconfig.xml
Thanks Shawn, Error loading class 'solr.clustering.ClusteringComponent' Please check your logs for more information Log4j (org.slf4j.impl.Log4jLoggerFactory) TimeLevel Logger Message 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as: /usr/share/solr/ckan/../../../contrib/extraction/lib). Your solrconfig.xml file includes the ClusteringComponent, but you don't have the jars required for that component available. Your solrconfig file does have a bunch of lib directives, but they don't point anywhere that's valid -- they assume that the entire Solr download is available, not just what's in the example dir. The jar for that particular component can be found in the download as dist/solr-clustering-X.X.X.jar ... but it is likely to also require additional jars, such as those found in contrib/clustering/lib. When it comes to extra jars for contrib or third-party components, the best thing to do is remove all lib directives from solrconfig.xml and put the jars in ${solr.solr.home}/lib. For you that location would be /usr/share/solr/lib. Solr automatically looks in this location without any extra configuration. I have put all the jar in the ${solr.solr.home}/lib folder, and now Solr starts correctly! There are still warnings, but apparently Solr works 11:44:37WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as: /usr/share/solr/ckan/../../../contrib/extraction/lib). 11:44:37WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: /usr/share/solr/ckan/../../../dist). 11:44:37WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/clustering/lib/ (resolved as: /usr/share/solr/ckan/../../../contrib/clustering/lib). 11:44:37WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: /usr/share/solr/ckan/../../../dist). 11:44:37WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/langid/lib/ (resolved as: /usr/share/solr/ckan/../../../contrib/langid/lib). 11:44:37WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: /usr/share/solr/ckan/../../../dist). 11:44:37WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/velocity/lib (resolved as: /usr/share/solr/ckan/../../../contrib/velocity/lib). 11:44:37WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: /usr/share/solr/ckan/../../../dist). Further advice - remove things you don't need from your config. If you're not planning to use the clustering component, take it out. Also remove any handlers that refer to components you won't be using -- the /browse handler is a prime example of something that most people don't need. Thanks for this tip. The original CKAN installation instructions for Solr were for Solr 1.4.1, so most likely with that version solrconf.xml was simpler and no editig was required. I will send the CKAN developers ml the new instructions for configuring Solr 4.5, asking them which Solr components are actually required by CKAN, so solrconf.xml can be changed accordingly. Thanks a lot for your precious help! Regards, -Elena
Re: solr 4.5.0 configuration Error: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config file .../solrconfig.xml
On 10/30/2013 9:24 AM, Elena Camossi wrote: Hi everyone, I'm trying to configure Solr 4.5.0 on Linux red Hat to work with CKAN and Tomcat, but Solr cannot initialize the core (I'm configuring just one core, but this is likely to change in the next future. I'm using contexts for this set up). Tomcat is working correctly, and list solr among running applications. When I open the Solr dashboard, the Solr instance is running but I see this error SolrCore Initialization Failures ckan-schema-2.0: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config file /usr/share/solr/ckan/conf/solrconfig.xml snip The content of my solr.xml for core settings (/usr/share/solr/solr.xml, in my installation) is solr persistent=true sharedLib=lib cores adminPath=/admin/cores defaultCoreName=ckan core name =ckan-schema-2.0 instanceDir=ckan/conf property name=dataDir value=/var/lib/solr/data/ckan //core /cores /solr Typically, instanceDir will not have the conf on it - it should just be ckan for this. Solr automatically adds the conf when it is looking for the configuration. Later you show that you have dataDir defined in solrconfig.xml -- take that out entirely. The dataDir is specified in solr.xml, putting it in solrconfig.xml also is just asking for problems -- especially if you ever end up sharing the solrconfig.xml between more than one core, which is what happens with SolrCloud. Also, evidence seems to suggest that the ${dataDir} substitution that used to work in older versions was a fluke. After a recent rigorous properties cleanup, it is no longer supported, unless you actually define that as a java system property. Finally, make sure that the permissions of all paths leading to both the symlink for your conf directory and the actual conf directory are readable to the tomcat user, not just root.
RE: solr 4.5.0 configuration Error: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config file .../solrconfig.xml
Dear Shawn, thanks a lot for your quick answer. -Original Message- From: Shawn Heisey [mailto:s...@elyograg.org] Sent: mercoledì 30 ottobre 2013 17:12 To: solr-user@lucene.apache.org Subject: Re: solr 4.5.0 configuration Error: org.apache.solr.common.SolrException:org.apache.solr.common.SolrExcepti on: Could not load config file .../solrconfig.xml On 10/30/2013 9:24 AM, Elena Camossi wrote: Hi everyone, I'm trying to configure Solr 4.5.0 on Linux red Hat to work with CKAN and Tomcat, but Solr cannot initialize the core (I'm configuring just one core, but this is likely to change in the next future. I'm using contexts for this set up). Tomcat is working correctly, and list solr among running applications. When I open the Solr dashboard, the Solr instance is running but I see this error SolrCore Initialization Failures ckan-schema-2.0: org.apache.solr.common.SolrException:org.apache.solr.common.SolrExcepti on: Could not load config file /usr/share/solr/ckan/conf/solrconfig.xml snip The content of my solr.xml for core settings (/usr/share/solr/solr.xml, in my installation) is solr persistent=true sharedLib=lib cores adminPath=/admin/cores defaultCoreName=ckan core name =ckan-schema-2.0 instanceDir=ckan/conf property name=dataDir value=/var/lib/solr/data/ckan //core /cores /solr Typically, instanceDir will not have the conf on it - it should just be ckan for this. Solr automatically adds the conf when it is looking for the configuration. Later you show that you have dataDir defined in solrconfig.xml -- take that out entirely. The dataDir is specified in solr.xml, putting it in solrconfig.xml also is just asking for problems -- especially if you ever end up sharing the solrconfig.xml between more than one core, which is what happens with SolrCloud. Also, evidence seems to suggest that the ${dataDir} substitution that used to work in older versions was a fluke. After a recent rigorous properties cleanup, it is no longer supported, unless you actually define that as a java system property. Actually, I had tried the instanceDir=ckan but it didn't work either (with the same error, just reporting a wrong path to solrconf.xml). I used this configuration taking suggestion from here http://stackoverflow.com/questions/16230493/apache-solr-unable-to-access-adm in-page). But now that I have commented the dataDir setting in solrconf.xml as you suggest, it changes behaviour and i have a different error from Solr Logging: SolrCore Initialization Failures ckan-schema-2.0: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Error loading class 'solr.clustering.ClusteringComponent' Please check your logs for more information Log4j (org.slf4j.impl.Log4jLoggerFactory) TimeLevel Logger Message 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as: /usr/share/solr/ckan/../../../contrib/extraction/lib). 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: /usr/share/solr/ckan/../../../dist). 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/clustering/lib/ (resolved as: /usr/share/solr/ckan/../../../contrib/clustering/lib). 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: /usr/share/solr/ckan/../../../dist). 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/langid/lib/ (resolved as: /usr/share/solr/ckan/../../../contrib/langid/lib). 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: /usr/share/solr/ckan/../../../dist). 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/velocity/lib (resolved as: /usr/share/solr/ckan/../../../contrib/velocity/lib). 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../dist/ (resolved as: /usr/share/solr/ckan/../../../dist). 17:36:44WARNSolrCore[ckan-schema-2.0] Solr index directory '/var/lib/solr/data/ckan/index' doesn't exist. Creating new index... 17:36:45ERROR CoreContainer Unable to create core: ckan-schema-2.0 17:36:45ERROR CoreContainer null:org.apache.solr.common.SolrException: Unable to create core: ckan-schema-2.0 null:org.apache.solr.common.SolrException: Unable to create core: ckan-schema-2.0 at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:936) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:568
Re: solr 4.5.0 configuration Error: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config file .../solrconfig.xml
On 10/30/2013 10:44 AM, Elena Camossi wrote: Actually, I had tried the instanceDir=ckan but it didn't work either (with the same error, just reporting a wrong path to solrconf.xml). I used this configuration taking suggestion from here http://stackoverflow.com/questions/16230493/apache-solr-unable-to-access-adm in-page). But now that I have commented the dataDir setting in solrconf.xml as you suggest, it changes behaviour and i have a different error from Solr Logging: SolrCore Initialization Failures ckan-schema-2.0: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Error loading class 'solr.clustering.ClusteringComponent' Please check your logs for more information Log4j (org.slf4j.impl.Log4jLoggerFactory) TimeLevel Logger Message 17:36:43WARNSolrResourceLoader Can't find (or read) directory to add to classloader: ../../../contrib/extraction/lib (resolved as: /usr/share/solr/ckan/../../../contrib/extraction/lib). Your solrconfig.xml file includes the ClusteringComponent, but you don't have the jars required for that component available. Your solrconfig file does have a bunch of lib directives, but they don't point anywhere that's valid -- they assume that the entire Solr download is available, not just what's in the example dir. The jar for that particular component can be found in the download as dist/solr-clustering-X.X.X.jar ... but it is likely to also require additional jars, such as those found in contrib/clustering/lib. When it comes to extra jars for contrib or third-party components, the best thing to do is remove all lib directives from solrconfig.xml and put the jars in ${solr.solr.home}/lib. For you that location would be /usr/share/solr/lib. Solr automatically looks in this location without any extra configuration. Further advice - remove things you don't need from your config. If you're not planning to use the clustering component, take it out. Also remove any handlers that refer to components you won't be using -- the /browse handler is a prime example of something that most people don't need. Thanks, Shawn
Re: Could not load config for solrconfig.xml
bq: I have no idea what to do First thing to do is look at the full stack trace in the log. The offending bits are usually farther down the stack. Best Erick On Sat, Aug 10, 2013 at 2:10 PM, shuargan shuar...@gmail.com wrote: Do you remember what was your mistake? Im having the same issue I have this solr.xml conf under Catalina/localhost ?xml version=1.0 encoding=utf-8? Context docBase=/usr/share/tomcat6/webapps/solr.war debug=0 privileged=true crossContext=true Environment name=solr/home type=java.lang.String value=/home/seba/aux override=true/ /Context and is throwing the same error... HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: Could not load config for solrconfig.xml,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load config for solrconfig.xml at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:860) at I have no idea what to do -- View this message in context: http://lucene.472066.n3.nabble.com/Could-not-load-config-for-solrconfig-xml-tp4052152p4083741.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Could not load config for solrconfig.xml
Do you remember what was your mistake? Im having the same issue I have this solr.xml conf under Catalina/localhost ?xml version=1.0 encoding=utf-8? Context docBase=/usr/share/tomcat6/webapps/solr.war debug=0 privileged=true crossContext=true Environment name=solr/home type=java.lang.String value=/home/seba/aux override=true/ /Context and is throwing the same error... HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: Could not load config for solrconfig.xml,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load config for solrconfig.xml at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:860) at I have no idea what to do -- View this message in context: http://lucene.472066.n3.nabble.com/Could-not-load-config-for-solrconfig-xml-tp4052152p4083741.html Sent from the Solr - User mailing list archive at Nabble.com.
Could not load config for solrconfig.xml
Hi, solr setup in windows worked fine, I tried to follow installing solr in unix, when I started tomcat I got this exxception : SEVERE: 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 :991) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051) at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:634) at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44 1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpat h or '/home/javaguys/solr-home/collection1/conf/', cwd=/home/spbear/javaguys/apa che-tomcat-7.0.39/bin at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoad er.java:318) at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader .java:283) at org.apache.solr.core.Config.init(Config.java:103) at org.apache.solr.core.Config.init(Config.java:73) at org.apache.solr.core.SolrConfig.init(SolrConfig.java:117) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java :989) ... 11 more Mar 28, 2013 1:39:43 PM org.apache.solr.common.SolrException log SEVERE: null:org.apache.solr.common.SolrException: Unable to create core: collec tion1 at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java: 1672) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1057) at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:634) at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44 1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.solr.common.SolrException: Could not load config for solrc onfig.xml at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java :991) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051) ... 10 more Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpat h or '/home/javaguys/solr-home/collection1/conf/', cwd=/home/spbear/javaguys/apa che-tomcat-7.0.39/bin at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoad er.java:318) at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader .java:283) at org.apache.solr.core.Config.init(Config.java:103) at org.apache.solr.core.Config.init(Config.java:73) at org.apache.solr.core.SolrConfig.init(SolrConfig.java:117) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java :989) ... 11 more Mar 28, 2013 1:39:43 PM org.apache.solr.servlet.SolrDispatchFilter init INFO: user.dir=/home/spbear/javaguys/apache-tomcat-7.0.39/bin Mar 28, 2013 1:39:43 PM org.apache.solr.servlet.SolrDispatchFilter init INFO: SolrDispatchFilter.init() done Mar 28, 2013 1:39:43 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /home/spbear/javaguys/apache-tomcat-7. INFO: Registering Log Listener Mar 28, 2013 1:39:42 PM org.apache.solr.core.CoreContainer create INFO: Creating SolrCore 'collection1' using instanceDir: /home/javaguys/solr-hom e/collection1 Mar 28, 2013 1:39:42 PM org.apache.solr.core.SolrResourceLoader init INFO: new SolrResourceLoader for directory: '/home/javaguys/solr-home/collection 1/' Mar 28, 2013 1:39:43 PM org.apache.solr.core.CoreContainer recordAndThrow SEVERE: 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 :991) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051
Re: Could not load config for solrconfig.xml
On 29 March 2013 00:19, A. Lotfi majidna...@yahoo.com wrote: Hi, solr setup in windows worked fine, I tried to follow installing solr in unix, when I started tomcat I got this exxception : [...] Seems it cannot find solrconfig.xml. The relevant part from the logs is: Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpat h or '/home/javaguys/solr-home/collection1/conf/', cwd=/home/spbear/javaguys/apa che-tomcat-7.0.39/bin Have you defined the solr/home property properly in your Solr configuration file? Regards, Gora
Re: Could not load config for solrconfig.xml
Thanks, my path to solr home was missing something, it's worlking, but no results, the same solr app with same configuration files worked in windows. Abdel From: Gora Mohanty g...@mimirtech.com To: solr-user@lucene.apache.org; A. Lotfi majidna...@yahoo.com Cc: gene...@lucene.apache.org gene...@lucene.apache.org Sent: Thursday, March 28, 2013 3:22 PM Subject: Re: Could not load config for solrconfig.xml On 29 March 2013 00:19, A. Lotfi majidna...@yahoo.com wrote: Hi, solr setup in windows worked fine, I tried to follow installing solr in unix, when I started tomcat I got this exxception : [...] Seems it cannot find solrconfig.xml. The relevant part from the logs is: Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpat h or '/home/javaguys/solr-home/collection1/conf/', cwd=/home/spbear/javaguys/apa che-tomcat-7.0.39/bin Have you defined the solr/home property properly in your Solr configuration file? Regards, Gora
Re: Could not load config for solrconfig.xml
On 29 March 2013 01:59, A. Lotfi majidna...@yahoo.com wrote: Thanks, my path to solr home was missing something, it's worlking, but no results, the same solr app with same configuration files worked in windows. What do you mean by no results? Have you indexed stuff, and are not able to search for it? Are you expecting to copy Solr files from an old setup with an index, and have things work? That would be OK, provided that the Solr index formats were compatible, but you would also need to copy the index, and define dataDir properly in solrconfig.xml. Regards, Gora
Re: Could not load config for solrconfig.xml
In windows when I hit Execute Query button I got this results : ?xml version=1.0 encoding=UTF-8?responselst name=responseHeaderint name=status0/intint name=QTime181/intlst name=paramsstr name=indenttrue/strstr name=qstreetname:mdw/strstr name=wtxml/str/lst/lstresult name=response numFound=13674 start=0docstr name=streetnameMEADOW/strstr name=lemsmatchcode2501001ABN 1MD 262/str/docdocstr name=streetnameMEADOW/strstr name=lemsmatchcode2501001ABRM1MD 472/str/docdocstr name=streetnameMEADOW/strstr name=lemsmatchcode2501001ADMS1MD 350/str/docdoc .. . In Unix with same setup, I got this result : ?xml version=1.0 encoding=UTF-8?responselst name=responseHeaderint name=status0/intint name=QTime2/intlst name=paramsstr name=indenttrue/strstr name=q*:*/strstr name=wtxml/str/lst/lstresult name=response numFound=0 start=0/result/response I did not understand why . thanks, your help is appreciated. From: Gora Mohanty g...@mimirtech.com To: solr-user@lucene.apache.org; A. Lotfi majidna...@yahoo.com Sent: Thursday, March 28, 2013 4:40 PM Subject: Re: Could not load config for solrconfig.xml On 29 March 2013 01:59, A. Lotfi majidna...@yahoo.com wrote: Thanks, my path to solr home was missing something, it's worlking, but no results, the same solr app with same configuration files worked in windows. What do you mean by no results? Have you indexed stuff, and are not able to search for it? Are you expecting to copy Solr files from an old setup with an index, and have things work? That would be OK, provided that the Solr index formats were compatible, but you would also need to copy the index, and define dataDir properly in solrconfig.xml. Regards, Gora
Re: Could not load config for solrconfig.xml
On 29 March 2013 07:23, A. Lotfi majidna...@yahoo.com wrote: In windows when I hit Execute Query button I got this results : [...] There seem to be no documents in your Solr index on the UNIX system. As I mentioned in my previous message, you either need to copy the index files from the WIndows system (provided that the Solr index format has not changed, this will work), or reindex on the UNIX system. Regards, Gora
Re: Could not load config for solrconfig.xml
In Unix, in data/index there is : segments.gen 20 B 3/28/2013 rw-r--r-- segments_1 45 B 3/28/2013 rw-r--r-- I don't know how this was generated , should I delete them from the directory, or from other place ? If so, how to delete reindex on the UNIX system ? thanks lot. From: Gora Mohanty g...@mimirtech.com To: A. Lotfi majidna...@yahoo.com Cc: solr-user@lucene.apache.org solr-user@lucene.apache.org Sent: Thursday, March 28, 2013 9:59 PM Subject: Re: Could not load config for solrconfig.xml On 29 March 2013 07:23, A. Lotfi majidna...@yahoo.com wrote: In windows when I hit Execute Query button I got this results : [...] There seem to be no documents in your Solr index on the UNIX system. As I mentioned in my previous message, you either need to copy the index files from the WIndows system (provided that the Solr index format has not changed, this will work), or reindex on the UNIX system. Regards, Gora
Re: Could not load config for solrconfig.xml
Hi Hoss, Thank you for replying to my question, The solrconfig.xml in the example-DIH in solr download is exactly the same like the links you posted in your reply, so where is the big difference ? I think I typed a mistake in my last question, instead of saying db-data-config.xml I said solrconfig.xml. but still did not understand where that exception come from. Your helps will be appreciated. Abdel. From: Chris Hostetter hossman_luc...@fucit.org To: gene...@lucene.apache.org gene...@lucene.apache.org; A. Lotfi majidna...@yahoo.com Sent: Wednesday, March 27, 2013 6:00 PM Subject: Re: Could not load config for solrconfig.xml 1) the email list you want to be using is solr-user@lucene, not general@lucene 2) there is a big differnece between solrconfig.xml (which controls in general how solr works for managing a SolrCore); and the config files for DIH (which can be used to tell Solr where/how to fetch data to index) typically called data-config.xml (but you can name them anything you want). what you have described below is a data config file for DIH, if you are trying to use it as a solrconfig.xml file you aren't going to get very far. I suggest you take a gandar at the example config set for using DIH with a database... https://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/ https://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/db/conf/ https://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/db/conf/solrconfig.xml?view=markup https://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/example/example-DIH/solr/db/conf/db-data-config.xml?view=log ...and keep them in mind while reviewing the DIH docs... http://wiki.apache.org/solr/DataImportHandler -Hoss
Could not load config for solrconfig.xml
Hi, I am trying solr with an oracle database, It's working but I have on the top of the page an exception : SolrCore Initialization Failures solr: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config for solrconfig.xml Here is my db-data-config.xml : dataConfig dataSource driver=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@ourIPaddress:1521:ourDB user=username password=password/ document entity name=residential query=select * from tsunami.consumer_data_01 where state='MA' deltaQuery=select LEMSMATCHCODE, STREETNAME from residential where last_modified '${dataimporter.last_index_time}' field column=LEMSMATCHCODE name=lemsmatchcode / field column=STREETNAME name=streetname / /entity /document /dataConfig Thanks, your help is appreciated.
Could not load config for solrconfig.xml
I run ant idea command for Solr 4.1.0 and opened source code within Intellij IDEA 12.0.4 and I use Centos 6.4 at my 64 bit computer. I debugged JettySolrRunner (I don't know, I think this is the way to run Solt with Embedd Jetty within my Intellij IDEA.) However I get that error: SEVERE: 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:897) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:957) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:579) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:574) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or './collection1/conf/', cwd=/home/kamaci/projects/lucene-solr at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:319) at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:284) at org.apache.solr.core.Config.init(Config.java:112) at org.apache.solr.core.Config.init(Config.java:82) at org.apache.solr.core.SolrConfig.init(SolrConfig.java:117) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:894) ... 11 more What to do?
Re: Could not load config for solrconfig.xml
Shoukd I create a collection1 folder as like in the example? On the other hand if I use .war tı deploy how can I resolve that problem too? 2013/3/22 Furkan KAMACI furkankam...@gmail.com I run ant idea command for Solr 4.1.0 and opened source code within Intellij IDEA 12.0.4 and I use Centos 6.4 at my 64 bit computer. I debugged JettySolrRunner (I don't know, I think this is the way to run Solt with Embedd Jetty within my Intellij IDEA.) However I get that error: SEVERE: 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:897) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:957) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:579) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:574) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or './collection1/conf/', cwd=/home/kamaci/projects/lucene-solr at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:319) at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:284) at org.apache.solr.core.Config.init(Config.java:112) at org.apache.solr.core.Config.init(Config.java:82) at org.apache.solr.core.SolrConfig.init(SolrConfig.java:117) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:894) ... 11 more What to do?
Re: Could not load config for solrconfig.xml
The wiki has some Tomcat info here: http://wiki.apache.org/solr/SolrTomcat, not sure how up-to-date it is. See also LucidWorks' Solr Reference Guide's page Running Solr on Tomcat: http://docs.lucidworks.com/display/solr/Running+Solr+on+Tomcat IntelliJ has a Tomcat run configuration that can run 'ant dist', then deploy the .war to Tomcat. I've never used it. Not sure if the Community edition has this capability. On Mar 21, 2013, at 8:35 PM, Furkan KAMACI furkankam...@gmail.com wrote: Shoukd I create a collection1 folder as like in the example? On the other hand if I use .war tı deploy how can I resolve that problem too? 2013/3/22 Furkan KAMACI furkankam...@gmail.com I run ant idea command for Solr 4.1.0 and opened source code within Intellij IDEA 12.0.4 and I use Centos 6.4 at my 64 bit computer. I debugged JettySolrRunner (I don't know, I think this is the way to run Solt with Embedd Jetty within my Intellij IDEA.) However I get that error: SEVERE: 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:897) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:957) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:579) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:574) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or './collection1/conf/', cwd=/home/kamaci/projects/lucene-solr at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:319) at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:284) at org.apache.solr.core.Config.init(Config.java:112) at org.apache.solr.core.Config.init(Config.java:82) at org.apache.solr.core.SolrConfig.init(SolrConfig.java:117) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:894) ... 11 more What to do?