: 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...

: java.security.AccessControlException: access denied (java.io.FilePermission
: /var/lib/tomcat6/solr/solr.xml read) at
: 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
: at java.security.AccessController.checkPermission(AccessController.java:553)
: at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at
: java.lang.SecurityManager.checkRead(SecurityManager.java:888) at
: java.io.File.exists(File.java:748) 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 
exists.

: 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)



-Hoss

Reply via email to