lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Severe errors in solr configuration
Date Tue, 10 Feb 2009 00:44:29 GMT

: Subject: Severe errors in solr configuration

It sounds like you solved your problem, but a few things to clarify for 
people who might find this thread later...

: access denied (
: /var/lib/tomcat6/solr/solr.xml read) at
: at
: at java.lang.SecurityManager.checkPermission( at
: java.lang.SecurityManager.checkRead( at
: at
: [...snip...]

this error is caused by the security manager settings of your JVM. an 
exception like this can occur anytime code attempts to find out if a file 

: There is no solr.xml in /var/lib/tomcat6/solr/ (which is the example solr
: home directory provided).  However, I did set the solr home with JDNI, under
: /var/lib/tomcat6/conf/Catalina/localhost/solr.xml, which reads:
: <Context docBase="/var/lib/tomcat6/solr.war"

...this is a tomcat context file, named solr.xml because you want tomcat 
to refer to the application as "solr" ... that's different from the 
(optional) solr.xml file that solr looks for in your Solr Home Dir to see 
if you want to run multiple cores.

in this specific case, it sounds like the tomcat context file wasn't where 
tomcat was looking for it, so the JNDI properties were never getting set, 
so Solr was attempting to use the current working directory (which it 
didn't have permissions to read)

(I'm betting that just before this AccessControlException, solr logged a 
message indicating that it couldn't determing the Solr Home Dir using 
system properties or JNDI)


View raw message