You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Raheel Hasan <ra...@gmail.com> on 2013/06/03 11:01:17 UTC

/non/existent/dir/yields/warning

Hi,

I am constantly getting this error in my solr log:

Can't find (or read) directory to add to classloader:
/non/existent/dir/yields/warning (resolved as:
E:\Projects\apache_solr\solr-4.3.0\example\solr\genesis_experimental\non\existent\dir\yields\warning).

Anyone got any idea on how to solve this....


-- 
Regards,
Raheel Hasan

Re: /non/existent/dir/yields/warning

Posted by Raheel Hasan <ra...@gmail.com>.
ok fantastic... now I will comment it to be sure.... thanks a lot

Regards,
Raheel


On Mon, Jun 3, 2013 at 7:27 PM, Shawn Heisey <so...@elyograg.org> wrote:

> On 6/3/2013 5:58 AM, Raheel Hasan wrote:
> > but the path looks like it shows how to setup non existent lib warning...
> > :D
>
> The reason for its existence is encoded in its name.  A nonexistent path
> results in a warning.  It's a way to illustrate to a novice what happens
> when you have a non-fatal misconfiguration.  The message is a warning
> and doesn't prevent Solr startup.
>
> Thanks,
> Shawn
>
>


-- 
Regards,
Raheel Hasan

Re: /non/existent/dir/yields/warning

Posted by Shawn Heisey <so...@elyograg.org>.
On 6/3/2013 5:58 AM, Raheel Hasan wrote:
> but the path looks like it shows how to setup non existent lib warning...
> :D

The reason for its existence is encoded in its name.  A nonexistent path
results in a warning.  It's a way to illustrate to a novice what happens
when you have a non-fatal misconfiguration.  The message is a warning
and doesn't prevent Solr startup.

Thanks,
Shawn


Re: /non/existent/dir/yields/warning

Posted by Raheel Hasan <ra...@gmail.com>.
Hi,

but the path looks like it shows how to setup non existent lib warning...
:D


On Mon, Jun 3, 2013 at 2:56 PM, Rafał Kuć <r....@solr.pl> wrote:

> Hello!
>
> That's a good question. I suppose its there to show users how to setup
> a custom path to libraries.
>
> --
> Regards,
>  Rafał Kuć
>  Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
>
> > ok thanks :)
>
> > But why was it there anyway? I mean it says in comments:
> > If a 'dir' option (with or without a regex) is used and nothing
> > is found that matches, a warning will be logged.
>
> > So it looks like a kind of exception handling or logging for libs not
> > found... so shouldnt this folder actually exist?
>
>
>
>
>
> > On Mon, Jun 3, 2013 at 2:06 PM, Rafał Kuć <r....@solr.pl> wrote:
>
> >> Hello!
> >>
> >> You should remove that entry from your solrconfig.xml file. It is
> >> something like this:
> >>
> >>   <lib dir="/non/existent/dir/yields/warning" />
> >>
> >>
> >> --
> >> Regards,
> >>  Rafał Kuć
> >>  Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch -
> ElasticSearch
> >>
> >> > Hi,
> >>
> >> > I am constantly getting this error in my solr log:
> >>
> >> > Can't find (or read) directory to add to classloader:
> >> > /non/existent/dir/yields/warning (resolved as:
> >> >
> >>
> E:\Projects\apache_solr\solr-4.3.0\example\solr\genesis_experimental\non\existent\dir\yields\warning).
> >>
> >> > Anyone got any idea on how to solve this....
> >>
> >>
> >>
>
>
>


-- 
Regards,
Raheel Hasan

Re: /non/existent/dir/yields/warning

Posted by Rafał Kuć <r....@solr.pl>.
Hello!

That's a good question. I suppose its there to show users how to setup
a custom path to libraries.

-- 
Regards,
 Rafał Kuć
 Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

> ok thanks :)

> But why was it there anyway? I mean it says in comments:
> If a 'dir' option (with or without a regex) is used and nothing
> is found that matches, a warning will be logged.

> So it looks like a kind of exception handling or logging for libs not
> found... so shouldnt this folder actually exist?





> On Mon, Jun 3, 2013 at 2:06 PM, Rafał Kuć <r....@solr.pl> wrote:

>> Hello!
>>
>> You should remove that entry from your solrconfig.xml file. It is
>> something like this:
>>
>>   <lib dir="/non/existent/dir/yields/warning" />
>>
>>
>> --
>> Regards,
>>  Rafał Kuć
>>  Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
>>
>> > Hi,
>>
>> > I am constantly getting this error in my solr log:
>>
>> > Can't find (or read) directory to add to classloader:
>> > /non/existent/dir/yields/warning (resolved as:
>> >
>> E:\Projects\apache_solr\solr-4.3.0\example\solr\genesis_experimental\non\existent\dir\yields\warning).
>>
>> > Anyone got any idea on how to solve this....
>>
>>
>>



Re: /non/existent/dir/yields/warning

Posted by Raheel Hasan <ra...@gmail.com>.
ok thanks :)

But why was it there anyway? I mean it says in comments:
If a 'dir' option (with or without a regex) is used and nothing
is found that matches, a warning will be logged.

So it looks like a kind of exception handling or logging for libs not
found... so shouldnt this folder actually exist?





On Mon, Jun 3, 2013 at 2:06 PM, Rafał Kuć <r....@solr.pl> wrote:

> Hello!
>
> You should remove that entry from your solrconfig.xml file. It is
> something like this:
>
>   <lib dir="/non/existent/dir/yields/warning" />
>
>
> --
> Regards,
>  Rafał Kuć
>  Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
>
> > Hi,
>
> > I am constantly getting this error in my solr log:
>
> > Can't find (or read) directory to add to classloader:
> > /non/existent/dir/yields/warning (resolved as:
> >
> E:\Projects\apache_solr\solr-4.3.0\example\solr\genesis_experimental\non\existent\dir\yields\warning).
>
> > Anyone got any idea on how to solve this....
>
>
>


-- 
Regards,
Raheel Hasan

Re: /non/existent/dir/yields/warning

Posted by Rafał Kuć <r....@solr.pl>.
Hello!

You should remove that entry from your solrconfig.xml file. It is
something like this:

  <lib dir="/non/existent/dir/yields/warning" /> 


-- 
Regards,
 Rafał Kuć
 Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

> Hi,

> I am constantly getting this error in my solr log:

> Can't find (or read) directory to add to classloader:
> /non/existent/dir/yields/warning (resolved as:
> E:\Projects\apache_solr\solr-4.3.0\example\solr\genesis_experimental\non\existent\dir\yields\warning).

> Anyone got any idea on how to solve this....