Re: Can't find solr.xml

2013-06-06 Thread Anria
Nabeel,

I just want to say, that though this post is very old, in the entire
internet of this error, your suggestion of moving out of /home/user/solr  
into  /opt/solr   was the one that worked for me too

Thank you! 
Anria



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Can-t-find-solr-xml-tp3992267p4068768.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Can't find solr.xml

2012-07-11 Thread Shawn Heisey

On 7/2/2012 2:33 AM, Nabeel Sulieman wrote:

Argh! (and hooray!)

I started from scratch again, following the wiki instructions. I did only
one thing differently; put my data directory in /opt instead of /home/dev.
And now it works!

I'm glad it's working now. I just wish I knew exactly what the difference
is. The directory in /opt has exactly the same permissions as the one in
/home/dev (chown -R tomcat solr).


This could be selinux.  I tend to disable it, as configuring it for 
proper operation with custom software can be tricky.  If this is the 
problem, there will hopefully be a record of the denial in one of the 
files in /var/log.  CentOS has selinux enabled by default.


In case you don't know how to turn it off: in /etc/selinux/config, set 
SELINUX=disabled and reboot.  There may be a way to disable it without 
rebooting, but I've found that to be the path of least resistance.


Thanks,
Shawn



Re: Can't find solr.xml

2012-07-11 Thread François Schiettecatte
On Jul 11, 2012, at 2:52 PM, Shawn Heisey wrote:

 On 7/2/2012 2:33 AM, Nabeel Sulieman wrote:
 Argh! (and hooray!)
 
 I started from scratch again, following the wiki instructions. I did only
 one thing differently; put my data directory in /opt instead of /home/dev.
 And now it works!
 
 I'm glad it's working now. I just wish I knew exactly what the difference
 is. The directory in /opt has exactly the same permissions as the one in
 /home/dev (chown -R tomcat solr).
 
 This could be selinux.  I tend to disable it, as configuring it for proper 
 operation with custom software can be tricky.  If this is the problem, there 
 will hopefully be a record of the denial in one of the files in /var/log.  
 CentOS has selinux enabled by default.
 
 In case you don't know how to turn it off: in /etc/selinux/config, set 
 SELINUX=disabled and reboot.  There may be a way to disable it without 
 rebooting, but I've found that to be the path of least resistance.
 
 Thanks,
 Shawn
 


You can temporarily disable selinux until the next reboot with this:

echo 0  /selinux/enforce

Cheers

François




Re: Can't find solr.xml

2012-07-02 Thread Nabeel Sulieman
Argh! (and hooray!)

I started from scratch again, following the wiki instructions. I did only
one thing differently; put my data directory in /opt instead of /home/dev.
And now it works!

I'm glad it's working now. I just wish I knew exactly what the difference
is. The directory in /opt has exactly the same permissions as the one in
/home/dev (chown -R tomcat solr).


On Sun, Jul 1, 2012 at 10:08 PM, Michael Della Bitta 
michael.della.bi...@appinions.com wrote:

 Possibly an obvious thing you've already looked at, but does the user
 that Tomcat's running under have execute permissions on all the
 directories leading up to your solr directory? It might be being
 prevented from traversing the directory tree.

 Also I would verify there's no ACLs on anything in that directory
 tree. Those can get bizarre if you're like me and don't understand
 them. :)

 I'm assuming you're using a UNIX variant here...

 Michael Della Bitta

 
 Appinions, Inc. -- Where Influence Isn’t a Game.
 http://www.appinions.com


 On Sun, Jul 1, 2012 at 11:40 AM, Nabeel Sulieman
 nabeel.sulie...@gmail.com wrote:
  I tried going back to 3.5 and ran into the same problem, so it's
 definitely
  an issue on my server.
 
  It's just so bizarre; I can cat or vi /home/dev/solr/solr.xml with no
  problems, and I've even tried setting the permission to read/write for
 all,
  but tomcat still can't seem to find the file.
 
  Hmmm... I wonder if my tomcat user is running in some kind of jailed
  environment? I'll look into that next.
 
  Anyways, I'll retrace my steps and see if I come up with anything.
 
  -Original Message-
  From: Mark Miller [mailto:markrmil...@gmail.com]
  Sent: Sunday, July 01, 2012 5:27 PM
  To: solr-user@lucene.apache.org
  Subject: Re: Can't find solr.xml
 
  Can't think of anything that would cause this from 3.5 to 3.6.
 
  If you indeed have a solr home located at home/dev/solr/ and there is a
 conf
  dir under that, all I can imagine is that it's a permissions issue or
  something at the OS level.
 
  On Jun 30, 2012, at 2:28 PM, Nabeel Sulieman wrote:
 
  Hi,
 
 
 
  I really hate bothering this group with something that should be
  trivial, but I've been googling and experimenting to get this to work
  for the last week now. I had no trouble getting my simple
  configuration working on 3.5, but when I moved over to 3.6, I seem to
 have
  hit something strange.
 
 
 
  As I said I'm on the latest version of solr (3.6.0), and I'm using
  exactly the standard war file, with the solr/home section
  uncommented and set to my Solr directory.
 
 
 
  However, even though the path is correct, Solr/Tomcat don't seem to be
  able to find the solr.xml file, nor the solrconfig.xml file.
 
 
 
  Java version is 1.6.0_29-b11, tomcat 5.5.35, CentOS.
 
 
 
  What am I missing here?
 
 
 
  Thanks. Below is the error log.
 
 
 
  Jun 30, 2012 12:47:58 PM
  org.apache.solr.core.CoreContainer$Initializer
  initialize
 
  INFO: looking for solr.xml: /home/dev/solr/solr.xml
 
  Jun 30, 2012 12:47:58 PM
  org.apache.solr.core.CoreContainer$Initializer
  initialize
 
  INFO: no solr.xml file found - using default
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer load
 
  INFO: Loading CoreContainer using Solr Home: '/home/dev/solr/'
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader
  init
 
  INFO: new SolrResourceLoader for directory: '/home/dev/solr/'
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer create
 
  INFO: Creating SolrCore '' using instanceDir: /home/dev/solr/.
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader
  init
 
  INFO: new SolrResourceLoader for directory: '/home/dev/solr/./'
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.common.SolrException log
 
  SEVERE: java.lang.RuntimeException: Can't find resource
  'solrconfig.xml' in classpath or '/home/dev/solr/./conf/',
  cwd=/usr/local/jakarta/apache-tomcat-5.5.35/bin
 
 at
  org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoade
  r.java
  :273)
 
 at
  org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.
  java:2
  39)
 
 at org.apache.solr.core.Config.init(Config.java:141)
 
 at
  org.apache.solr.core.SolrConfig.init(SolrConfig.java:138)
 
 at
  org.apache.solr.core.CoreContainer.create(CoreContainer.java:455)
 
 at
  org.apache.solr.core.CoreContainer.load(CoreContainer.java:335)
 
 at
  org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContaine
  r.java
  :165)
 
 at
  org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.jav
  a:96)
 
 at
  org.apache.catalina.core.ApplicationFilterConfig.getFilter(Application
  Filter
  Config.java:221)
 
 at
  org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicat
  ionFil

RE: Can't find solr.xml

2012-07-02 Thread Noordeen, Roxy
Try to add below below file, and set to any path you would like to use:

/usr/local/tomcat/conf/Catalina/localhost/solr.xml 
Context path=/solr
  Environment name=solr/home type=java.lang.String 
value=/usr/local/tomcat/data/solr/dev/ override=true/
/Context

Roxy


-Original Message-
From: Nabeel Sulieman [mailto:nabeel.sulie...@gmail.com] 
Sent: Monday, July 02, 2012 4:34 AM
To: solr-user@lucene.apache.org
Subject: Re: Can't find solr.xml

Argh! (and hooray!)

I started from scratch again, following the wiki instructions. I did only
one thing differently; put my data directory in /opt instead of /home/dev.
And now it works!

I'm glad it's working now. I just wish I knew exactly what the difference
is. The directory in /opt has exactly the same permissions as the one in
/home/dev (chown -R tomcat solr).


On Sun, Jul 1, 2012 at 10:08 PM, Michael Della Bitta 
michael.della.bi...@appinions.com wrote:

 Possibly an obvious thing you've already looked at, but does the user
 that Tomcat's running under have execute permissions on all the
 directories leading up to your solr directory? It might be being
 prevented from traversing the directory tree.

 Also I would verify there's no ACLs on anything in that directory
 tree. Those can get bizarre if you're like me and don't understand
 them. :)

 I'm assuming you're using a UNIX variant here...

 Michael Della Bitta

 
 Appinions, Inc. -- Where Influence Isn’t a Game.
 http://www.appinions.com


 On Sun, Jul 1, 2012 at 11:40 AM, Nabeel Sulieman
 nabeel.sulie...@gmail.com wrote:
  I tried going back to 3.5 and ran into the same problem, so it's
 definitely
  an issue on my server.
 
  It's just so bizarre; I can cat or vi /home/dev/solr/solr.xml with no
  problems, and I've even tried setting the permission to read/write for
 all,
  but tomcat still can't seem to find the file.
 
  Hmmm... I wonder if my tomcat user is running in some kind of jailed
  environment? I'll look into that next.
 
  Anyways, I'll retrace my steps and see if I come up with anything.
 
  -Original Message-
  From: Mark Miller [mailto:markrmil...@gmail.com]
  Sent: Sunday, July 01, 2012 5:27 PM
  To: solr-user@lucene.apache.org
  Subject: Re: Can't find solr.xml
 
  Can't think of anything that would cause this from 3.5 to 3.6.
 
  If you indeed have a solr home located at home/dev/solr/ and there is a
 conf
  dir under that, all I can imagine is that it's a permissions issue or
  something at the OS level.
 
  On Jun 30, 2012, at 2:28 PM, Nabeel Sulieman wrote:
 
  Hi,
 
 
 
  I really hate bothering this group with something that should be
  trivial, but I've been googling and experimenting to get this to work
  for the last week now. I had no trouble getting my simple
  configuration working on 3.5, but when I moved over to 3.6, I seem to
 have
  hit something strange.
 
 
 
  As I said I'm on the latest version of solr (3.6.0), and I'm using
  exactly the standard war file, with the solr/home section
  uncommented and set to my Solr directory.
 
 
 
  However, even though the path is correct, Solr/Tomcat don't seem to be
  able to find the solr.xml file, nor the solrconfig.xml file.
 
 
 
  Java version is 1.6.0_29-b11, tomcat 5.5.35, CentOS.
 
 
 
  What am I missing here?
 
 
 
  Thanks. Below is the error log.
 
 
 
  Jun 30, 2012 12:47:58 PM
  org.apache.solr.core.CoreContainer$Initializer
  initialize
 
  INFO: looking for solr.xml: /home/dev/solr/solr.xml
 
  Jun 30, 2012 12:47:58 PM
  org.apache.solr.core.CoreContainer$Initializer
  initialize
 
  INFO: no solr.xml file found - using default
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer load
 
  INFO: Loading CoreContainer using Solr Home: '/home/dev/solr/'
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader
  init
 
  INFO: new SolrResourceLoader for directory: '/home/dev/solr/'
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer create
 
  INFO: Creating SolrCore '' using instanceDir: /home/dev/solr/.
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader
  init
 
  INFO: new SolrResourceLoader for directory: '/home/dev/solr/./'
 
  Jun 30, 2012 12:47:58 PM org.apache.solr.common.SolrException log
 
  SEVERE: java.lang.RuntimeException: Can't find resource
  'solrconfig.xml' in classpath or '/home/dev/solr/./conf/',
  cwd=/usr/local/jakarta/apache-tomcat-5.5.35/bin
 
 at
  org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoade
  r.java
  :273)
 
 at
  org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.
  java:2
  39)
 
 at org.apache.solr.core.Config.init(Config.java:141)
 
 at
  org.apache.solr.core.SolrConfig.init(SolrConfig.java:138)
 
 at
  org.apache.solr.core.CoreContainer.create(CoreContainer.java:455)
 
 at
  org.apache.solr.core.CoreContainer.load(CoreContainer.java

Re: Can't find solr.xml

2012-07-01 Thread Mark Miller
Can't think of anything that would cause this from 3.5 to 3.6.

If you indeed have a solr home located at home/dev/solr/ and there is a conf 
dir under that, all I can imagine is that it's a permissions issue or something 
at the OS level.

On Jun 30, 2012, at 2:28 PM, Nabeel Sulieman wrote:

 Hi,
 
 
 
 I really hate bothering this group with something that should be trivial,
 but I've been googling and experimenting to get this to work for the last
 week now. I had no trouble getting my simple configuration working on 3.5,
 but when I moved over to 3.6, I seem to have hit something strange.
 
 
 
 As I said I'm on the latest version of solr (3.6.0), and I'm using exactly
 the standard war file, with the solr/home section uncommented and set to
 my Solr directory.
 
 
 
 However, even though the path is correct, Solr/Tomcat don't seem to be able
 to find the solr.xml file, nor the solrconfig.xml file. 
 
 
 
 Java version is 1.6.0_29-b11, tomcat 5.5.35, CentOS.
 
 
 
 What am I missing here?
 
 
 
 Thanks. Below is the error log.
 
 
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer$Initializer
 initialize
 
 INFO: looking for solr.xml: /home/dev/solr/solr.xml
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer$Initializer
 initialize
 
 INFO: no solr.xml file found - using default
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer load
 
 INFO: Loading CoreContainer using Solr Home: '/home/dev/solr/'
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader init
 
 INFO: new SolrResourceLoader for directory: '/home/dev/solr/'
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer create
 
 INFO: Creating SolrCore '' using instanceDir: /home/dev/solr/.
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader init
 
 INFO: new SolrResourceLoader for directory: '/home/dev/solr/./'
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.common.SolrException log
 
 SEVERE: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in
 classpath or '/home/dev/solr/./conf/',
 cwd=/usr/local/jakarta/apache-tomcat-5.5.35/bin
 
at
 org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java
 :273)
 
at
 org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:2
 39)
 
at org.apache.solr.core.Config.init(Config.java:141)
 
at
 org.apache.solr.core.SolrConfig.init(SolrConfig.java:138)
 
at
 org.apache.solr.core.CoreContainer.create(CoreContainer.java:455)
 
at
 org.apache.solr.core.CoreContainer.load(CoreContainer.java:335)
 
at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java
 :165)
 
at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:96)
 
at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
 Config.java:221)
 
at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
 terConfig.java:302)
 
at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon
 fig.java:78)
 
at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36
 66)
 
at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
 
at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:3056)
 
at
 org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:904)
 
at
 org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.jav
 a:496)
 
at
 org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java
 :99)
 
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
 
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:269)
 
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:188)
 
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:213)
 
at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:172)
 
at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:563)
 
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
 )
 
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
 )
 
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :108)
 
at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 
at
 

RE: Can't find solr.xml

2012-07-01 Thread Nabeel Sulieman
I tried going back to 3.5 and ran into the same problem, so it's definitely
an issue on my server. 

It's just so bizarre; I can cat or vi /home/dev/solr/solr.xml with no
problems, and I've even tried setting the permission to read/write for all,
but tomcat still can't seem to find the file.

Hmmm... I wonder if my tomcat user is running in some kind of jailed
environment? I'll look into that next.

Anyways, I'll retrace my steps and see if I come up with anything.

-Original Message-
From: Mark Miller [mailto:markrmil...@gmail.com] 
Sent: Sunday, July 01, 2012 5:27 PM
To: solr-user@lucene.apache.org
Subject: Re: Can't find solr.xml

Can't think of anything that would cause this from 3.5 to 3.6.

If you indeed have a solr home located at home/dev/solr/ and there is a conf
dir under that, all I can imagine is that it's a permissions issue or
something at the OS level.

On Jun 30, 2012, at 2:28 PM, Nabeel Sulieman wrote:

 Hi,
 
 
 
 I really hate bothering this group with something that should be 
 trivial, but I've been googling and experimenting to get this to work 
 for the last week now. I had no trouble getting my simple 
 configuration working on 3.5, but when I moved over to 3.6, I seem to have
hit something strange.
 
 
 
 As I said I'm on the latest version of solr (3.6.0), and I'm using 
 exactly the standard war file, with the solr/home section 
 uncommented and set to my Solr directory.
 
 
 
 However, even though the path is correct, Solr/Tomcat don't seem to be 
 able to find the solr.xml file, nor the solrconfig.xml file.
 
 
 
 Java version is 1.6.0_29-b11, tomcat 5.5.35, CentOS.
 
 
 
 What am I missing here?
 
 
 
 Thanks. Below is the error log.
 
 
 
 Jun 30, 2012 12:47:58 PM 
 org.apache.solr.core.CoreContainer$Initializer
 initialize
 
 INFO: looking for solr.xml: /home/dev/solr/solr.xml
 
 Jun 30, 2012 12:47:58 PM 
 org.apache.solr.core.CoreContainer$Initializer
 initialize
 
 INFO: no solr.xml file found - using default
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer load
 
 INFO: Loading CoreContainer using Solr Home: '/home/dev/solr/'
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader 
 init
 
 INFO: new SolrResourceLoader for directory: '/home/dev/solr/'
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer create
 
 INFO: Creating SolrCore '' using instanceDir: /home/dev/solr/.
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader 
 init
 
 INFO: new SolrResourceLoader for directory: '/home/dev/solr/./'
 
 Jun 30, 2012 12:47:58 PM org.apache.solr.common.SolrException log
 
 SEVERE: java.lang.RuntimeException: Can't find resource 
 'solrconfig.xml' in classpath or '/home/dev/solr/./conf/', 
 cwd=/usr/local/jakarta/apache-tomcat-5.5.35/bin
 
at
 org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoade
 r.java
 :273)
 
at
 org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.
 java:2
 39)
 
at org.apache.solr.core.Config.init(Config.java:141)
 
at
 org.apache.solr.core.SolrConfig.init(SolrConfig.java:138)
 
at
 org.apache.solr.core.CoreContainer.create(CoreContainer.java:455)
 
at
 org.apache.solr.core.CoreContainer.load(CoreContainer.java:335)
 
at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContaine
 r.java
 :165)
 
at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.jav
 a:96)
 
at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(Application
 Filter
 Config.java:221)
 
at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicat
 ionFil
 terConfig.java:302)
 
at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFil
 terCon
 fig.java:78)
 
at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.j
 ava:36
 66)
 
at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:42
 58)
 
at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:3
 056)
 
at
 org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:
 904)
 
at
 org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServl
 et.jav
 a:496)
 
at
 org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServle
 t.java
 :99)
 
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
 
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
 cation
 FilterChain.java:269)
 
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
 lterCh
 ain.java:188)
 
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa

Re: Can't find solr.xml

2012-07-01 Thread Michael Della Bitta
Possibly an obvious thing you've already looked at, but does the user
that Tomcat's running under have execute permissions on all the
directories leading up to your solr directory? It might be being
prevented from traversing the directory tree.

Also I would verify there's no ACLs on anything in that directory
tree. Those can get bizarre if you're like me and don't understand
them. :)

I'm assuming you're using a UNIX variant here...

Michael Della Bitta


Appinions, Inc. -- Where Influence Isn’t a Game.
http://www.appinions.com


On Sun, Jul 1, 2012 at 11:40 AM, Nabeel Sulieman
nabeel.sulie...@gmail.com wrote:
 I tried going back to 3.5 and ran into the same problem, so it's definitely
 an issue on my server.

 It's just so bizarre; I can cat or vi /home/dev/solr/solr.xml with no
 problems, and I've even tried setting the permission to read/write for all,
 but tomcat still can't seem to find the file.

 Hmmm... I wonder if my tomcat user is running in some kind of jailed
 environment? I'll look into that next.

 Anyways, I'll retrace my steps and see if I come up with anything.

 -Original Message-
 From: Mark Miller [mailto:markrmil...@gmail.com]
 Sent: Sunday, July 01, 2012 5:27 PM
 To: solr-user@lucene.apache.org
 Subject: Re: Can't find solr.xml

 Can't think of anything that would cause this from 3.5 to 3.6.

 If you indeed have a solr home located at home/dev/solr/ and there is a conf
 dir under that, all I can imagine is that it's a permissions issue or
 something at the OS level.

 On Jun 30, 2012, at 2:28 PM, Nabeel Sulieman wrote:

 Hi,



 I really hate bothering this group with something that should be
 trivial, but I've been googling and experimenting to get this to work
 for the last week now. I had no trouble getting my simple
 configuration working on 3.5, but when I moved over to 3.6, I seem to have
 hit something strange.



 As I said I'm on the latest version of solr (3.6.0), and I'm using
 exactly the standard war file, with the solr/home section
 uncommented and set to my Solr directory.



 However, even though the path is correct, Solr/Tomcat don't seem to be
 able to find the solr.xml file, nor the solrconfig.xml file.



 Java version is 1.6.0_29-b11, tomcat 5.5.35, CentOS.



 What am I missing here?



 Thanks. Below is the error log.



 Jun 30, 2012 12:47:58 PM
 org.apache.solr.core.CoreContainer$Initializer
 initialize

 INFO: looking for solr.xml: /home/dev/solr/solr.xml

 Jun 30, 2012 12:47:58 PM
 org.apache.solr.core.CoreContainer$Initializer
 initialize

 INFO: no solr.xml file found - using default

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer load

 INFO: Loading CoreContainer using Solr Home: '/home/dev/solr/'

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader
 init

 INFO: new SolrResourceLoader for directory: '/home/dev/solr/'

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer create

 INFO: Creating SolrCore '' using instanceDir: /home/dev/solr/.

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader
 init

 INFO: new SolrResourceLoader for directory: '/home/dev/solr/./'

 Jun 30, 2012 12:47:58 PM org.apache.solr.common.SolrException log

 SEVERE: java.lang.RuntimeException: Can't find resource
 'solrconfig.xml' in classpath or '/home/dev/solr/./conf/',
 cwd=/usr/local/jakarta/apache-tomcat-5.5.35/bin

at
 org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoade
 r.java
 :273)

at
 org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.
 java:2
 39)

at org.apache.solr.core.Config.init(Config.java:141)

at
 org.apache.solr.core.SolrConfig.init(SolrConfig.java:138)

at
 org.apache.solr.core.CoreContainer.create(CoreContainer.java:455)

at
 org.apache.solr.core.CoreContainer.load(CoreContainer.java:335)

at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContaine
 r.java
 :165)

at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.jav
 a:96)

at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(Application
 Filter
 Config.java:221)

at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicat
 ionFil
 terConfig.java:302)

at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFil
 terCon
 fig.java:78)

at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.j
 ava:36
 66)

at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:42
 58)

at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:3
 056)

at
 org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:
 904)

at
 org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServl

Re: Can't find solr.xml

2012-06-30 Thread Lance Norskog
Try starting with the example/multicore directory. It shows how
solr.xml describes different available cores.

On Sat, Jun 30, 2012 at 11:28 AM, Nabeel Sulieman
nabeel.sulie...@gmail.com wrote:
 Hi,



 I really hate bothering this group with something that should be trivial,
 but I've been googling and experimenting to get this to work for the last
 week now. I had no trouble getting my simple configuration working on 3.5,
 but when I moved over to 3.6, I seem to have hit something strange.



 As I said I'm on the latest version of solr (3.6.0), and I'm using exactly
 the standard war file, with the solr/home section uncommented and set to
 my Solr directory.



 However, even though the path is correct, Solr/Tomcat don't seem to be able
 to find the solr.xml file, nor the solrconfig.xml file.



 Java version is 1.6.0_29-b11, tomcat 5.5.35, CentOS.



 What am I missing here?



 Thanks. Below is the error log.



 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer$Initializer
 initialize

 INFO: looking for solr.xml: /home/dev/solr/solr.xml

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer$Initializer
 initialize

 INFO: no solr.xml file found - using default

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer load

 INFO: Loading CoreContainer using Solr Home: '/home/dev/solr/'

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader init

 INFO: new SolrResourceLoader for directory: '/home/dev/solr/'

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.CoreContainer create

 INFO: Creating SolrCore '' using instanceDir: /home/dev/solr/.

 Jun 30, 2012 12:47:58 PM org.apache.solr.core.SolrResourceLoader init

 INFO: new SolrResourceLoader for directory: '/home/dev/solr/./'

 Jun 30, 2012 12:47:58 PM org.apache.solr.common.SolrException log

 SEVERE: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in
 classpath or '/home/dev/solr/./conf/',
 cwd=/usr/local/jakarta/apache-tomcat-5.5.35/bin

 at
 org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java
 :273)

 at
 org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:2
 39)

 at org.apache.solr.core.Config.init(Config.java:141)

 at
 org.apache.solr.core.SolrConfig.init(SolrConfig.java:138)

 at
 org.apache.solr.core.CoreContainer.create(CoreContainer.java:455)

 at
 org.apache.solr.core.CoreContainer.load(CoreContainer.java:335)

 at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java
 :165)

 at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:96)

 at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
 Config.java:221)

 at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
 terConfig.java:302)

 at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon
 fig.java:78)

 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36
 66)

 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)

 at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:3056)

 at
 org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:904)

 at
 org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.jav
 a:496)

 at
 org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java
 :99)

 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:627)

 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:269)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:188)

 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:213)

 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:172)

 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:563)

 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
 )

 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
 )

 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :108)

 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)

 at
 

Re: can't find solr.xml

2009-11-03 Thread Chris Hostetter

: I have downloaded apache-solr-1.3.0.tgz for Linux and don't see solr.xml. can
: someone assist.

example/multicore/solr.xml is an example solr.xml file demonstrating the 
Multi-Core support in solr 1.3.  as mentioned on the wiki, you can run the 
multicore example using this command...

java -Dsolr.solr.home=multicore -jar start.jar

http://wiki.apache.org/solr/CoreAdmin

-Hoss



RE: can't find solr.xml

2009-10-30 Thread Ankit Bhatnagar

It should be in couple of places like - apache-solr-1.3\example\exampledocs etc
 
-Ankit
 


-Original Message-
From: javaxmlsoapdev [mailto:vika...@yahoo.com] 
Sent: Friday, October 30, 2009 4:50 PM
To: solr-user@lucene.apache.org
Subject: can't find solr.xml


I have downloaded apache-solr-1.3.0.tgz for Linux and don't see solr.xml. can
someone assist.
-- 
View this message in context: 
http://old.nabble.com/can%27t-find-solr.xml-tp26136630p26136630.html
Sent from the Solr - User mailing list archive at Nabble.com.