You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Aman Tandon (JIRA)" <ji...@apache.org> on 2014/02/24 16:07:30 UTC

[jira] [Commented] (SOLR-4801) "Can't find (or read) directory to add to classloader" at startup

    [ https://issues.apache.org/jira/browse/SOLR-4801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910381#comment-13910381 ] 

Aman Tandon commented on SOLR-4801:
-----------------------------------

Hi there i am just start working on Solr from last few months.
working environment: Windows/UNIX(Centos)

It was easier to solve this problem just change the path in your solrconfig.xml like "D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\" (upto your dist folder in tomcat directory) if you don't have dist in tomcat then the dist folder from solr distribution and keep it parallel to tomcat and put path up to that directory

here is the snapshot of my solrconfig.xml
  <lib dir="D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\contrib\extraction\lib" regex=".*\.jar" />
  <lib dir="D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\dist\" regex="solr-cell-\d.*\.jar" />

  <lib dir="D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\contrib\clustering\lib\" regex=".*\.jar" />
  <lib dir="D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\dist\" regex="solr-clustering-\d.*\.jar" />

  <lib dir="D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\contrib\langid\lib\" regex=".*\.jar" />
  <lib dir="D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\dist\" regex="solr-langid-\d.*\.jar" />

  <lib dir="D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\contrib\velocity\lib" regex=".*\.jar" />
  <lib dir="D:\solr-tomcat\Apache Software Foundation\Tomcat 8.0\dist\" regex="solr-velocity-\d.*\.jar" />

Note: Use windows based directory separator the you will see no warning messages in logs after this correction

Correct me if i am wrong.

Thanks

> "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 was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org