: I have a class (in a jar) that reads from properties (text) files. I have these : files in the same jar file as the class. : : However, when my class reads those properties files, those files cannot be found : since solr reads from tomcat's bin directory.
Can you elaborate a bit more on what these Jars are? ... are these Solr Plugins you've writen (ie: that know about the internal Solr APIs?) ? ... how does your jar realted to solr? are you building your own solr.war containing those jars, or are you loading it using a solr plugin "lib" directory? ... what do you mean by "my class reads those properties files" ? ... what code are you using to "read" them? what log/error messages are you getting? : I don't really want to put the config files in tomcat's bin directory. in an ideal world, solr would never use the current working directory, and would only ever pay attention to the Solr Home dir and paths things specificly mentioned by config directives -- but the world is not ideal, and solr definitely has some historic behavior that does utilize the CWD. But if you are using Solr's ResourceLoader API in your plugin, it should actively try to find your resource in a multitude of places (if it's not an absolute path) need more specifics to understand exactly what is going wrong for you though. -Hoss