[
https://issues.apache.org/jira/browse/SOLR-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13652167#comment-13652167
]
Shawn Heisey commented on SOLR-4801:
------------------------------------
bq. As far as I know we do not need the contrib items, however if I've
incorrectly installed Solr I'd like to know how to fix it.
In my mind, your minimalist install approach is the right way to go. I also
take a minimalist approach to forking the example solrconfig.xml. When forking
the example schema.xml, my approach is semi-minimalist - the "primitive"
fieldType entries are very useful to keep around.
bq. If one of these lib directories does not exist, solr should fail hard. This
total/crap/ignored is an anti-feature.
As much as the little bit of profanity amuses me, I agree with Robert. Config
elements that reference invalid information or have typos should result in a
launch failure. For solrconfig.xml, that would result in that core not
loading. The same goes for errors in a <core> tag in solr.xml. For parts of
solr.xml outside of the <core> tags, it should result in Solr failing to start.
Unrelated note: This is another indirect argument in favor of Solr no longer
being a webapp.
[~janhoy], I hope that your proposed config example was just a quick brain dump
and you don't really want "str" tags in solr.xml. That would probably make it
very hard to catch config errors at startup time.
On a larger XML topic, using generic tags (str, int, etc) might make sense in
parts of solrconfig.xml where it is used extensively, but I have sometimes
wondered whether there would be fewer problems if we used more specific tags
and fewer generic. Making it through the transition period might be a
nightmare, though.
> "Can't find (or read) directory to add to classloader" at startup
> -----------------------------------------------------------------
>
> Key: SOLR-4801
> URL: https://issues.apache.org/jira/browse/SOLR-4801
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.3
> Environment: Windows 2008 R2
> Java JRE 1.6.0_45 x64
> Jetty 8.1.10
> Solr 4.3.0 + lib\etc files
> Reporter: Leith Tussing
> Priority: Minor
>
> I upgraded from 4.2.1 by replacing the war file and adding the lib\etc files
> from the example section into my Jetty installation. Now every time I start
> the services I get WARN messages I've never gotten before during startup.
> Additionally there appears to be profanity in the last WARN message as it
> looks for a "/total/crap/dir/ignored" after failing the other items.
> {code:xml}
> WARN - 2013-05-08 08:46:06.710; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader:
> ../../../contrib/extraction/lib (resolved as:
> C:\Jetty\solr\instance1\..\..\..\contrib\extraction\lib).
> WARN - 2013-05-08 08:46:06.714; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader: ../../../dist/
> (resolved as: C:\Jetty\solr\instance1\..\..\..\dist).
> WARN - 2013-05-08 08:46:06.715; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader:
> ../../../contrib/clustering/lib/ (resolved as:
> C:\Jetty\solr\instance1\..\..\..\contrib\clustering\lib).
> WARN - 2013-05-08 08:46:06.716; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader: ../../../dist/
> (resolved as: C:\Jetty\solr\instance1\..\..\..\dist).
> WARN - 2013-05-08 08:46:06.716; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader:
> ../../../contrib/langid/lib/ (resolved as:
> C:\Jetty\solr\instance1\..\..\..\contrib\langid\lib).
> WARN - 2013-05-08 08:46:06.717; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader: ../../../dist/
> (resolved as: C:\Jetty\solr\instance1\..\..\..\dist).
> WARN - 2013-05-08 08:46:06.717; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader:
> ../../../contrib/velocity/lib (resolved as:
> C:\Jetty\solr\instance1\..\..\..\contrib\velocity\lib).
> WARN - 2013-05-08 08:46:06.718; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader: ../../../dist/
> (resolved as: C:\Jetty\solr\instance1\..\..\..\dist).
> WARN - 2013-05-08 08:46:06.719; org.apache.solr.core.SolrResourceLoader;
> Can't find (or read) directory to add to classloader: /total/crap/dir/ignored
> (resolved as: C:\Jetty\solr\instance1\total\crap\dir\ignored).
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]