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 Michael Sokolov <ms...@safaribooksonline.com> on 2013/03/13 22:28:31 UTC

discovery-based core enumeration with embedded solr

Has the new core enumeration strategy been implemented in the 
CoreContainer.Initializer.initialize() code path?  It doesn't seem like 
it has.

I get this exception:

Caused by: org.apache.solr.common.SolrException: Could not load config 
for solrconfig.xml
     at 
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:991)
     at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051)
     ... 10 more
Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in 
classpath or 'solr-multi/collection1/conf/', cwd=/proj/lux
     at 
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:318)
     at 
org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:283)
     at org.apache.solr.core.Config.<init>(Config.java:103)
     at org.apache.solr.core.Config.<init>(Config.java:73)
     at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:117)
     at 
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:989)
     ... 11 more

even though I have a solr.properties file in solr-multi (which is my 
solr.home), and core.properties in some subdirectories of that

-- 
Michael Sokolov
Senior Architect
Safari Books Online


RE: Solr 3.6.1 ClassNotFound Exception

Posted by "Zhang, Lisheng" <Li...@BroadVision.com>.
Hi Erick,

Thanks! Actually this is other people's installation and I help to
debug.

I guess is that in solrconfig.xml, the line:

<lib dir="../../dist/" regex="apache-solr-cell-\d.*\.jar" />

(or other similar line) somehow does not work , I will try to look
more.

Thanks very much for helps, Lisheng



-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com]
Sent: Sunday, March 17, 2013 7:26 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr 3.6.1 ClassNotFound Exception


Hmmm, you shouldn't have to go looking for this, it should just be there.
My guess is that you have some kind of classpath issue.

If you have access to a machine that has never seen Solr, or a VM, I'd try
installing a fresh copy of Solr. If that works, then you can be pretty sure
you've changed your environment (perhaps inadvertently).

Best
Erick


On Sat, Mar 16, 2013 at 10:11 AM, Zhang, Lisheng <
Lisheng.Zhang@broadvision.com> wrote:

>
> Hi,
>
> This is perhaps a trivial question but somehow I could not pin-down:
> when trying to index a file (using solr 3.6.1) I got the error:
>
> Caused by: org.apache.solr.common.SolrException: Error loading class
> 'solr.extraction.ExtractingRequestHandler'
>
> I know in solrconfig.xml we have defined
>
> ///
> <requestHandler name="/update/extract"
>                   startup="lazy"
>                   class="solr.extraction.ExtractingRequestHandler" >
> ///
>
> and the jar file should be:
>
> <SOLR_HOME>/dist/apache-solr-cell-3.6.1.jar
>
> But above jar file only have class:
>
> jar tvf apache-solr-cell-3.6.1.jar | grep ExtractingRequestHandler
>   5332 Tue Jul 17 12:45:40 PDT 2012
> org/apache/solr/handler/extraction/ExtractingRequestHandler.class
>
> Where we can find "solr.extraction.ExtractingRequestHandler" ?
>
> Thanks very much for helps, Lisheng
>

Re: Solr 3.6.1 ClassNotFound Exception

Posted by Erick Erickson <er...@gmail.com>.
Hmmm, you shouldn't have to go looking for this, it should just be there.
My guess is that you have some kind of classpath issue.

If you have access to a machine that has never seen Solr, or a VM, I'd try
installing a fresh copy of Solr. If that works, then you can be pretty sure
you've changed your environment (perhaps inadvertently).

Best
Erick


On Sat, Mar 16, 2013 at 10:11 AM, Zhang, Lisheng <
Lisheng.Zhang@broadvision.com> wrote:

>
> Hi,
>
> This is perhaps a trivial question but somehow I could not pin-down:
> when trying to index a file (using solr 3.6.1) I got the error:
>
> Caused by: org.apache.solr.common.SolrException: Error loading class
> 'solr.extraction.ExtractingRequestHandler'
>
> I know in solrconfig.xml we have defined
>
> ///
> <requestHandler name="/update/extract"
>                   startup="lazy"
>                   class="solr.extraction.ExtractingRequestHandler" >
> ///
>
> and the jar file should be:
>
> <SOLR_HOME>/dist/apache-solr-cell-3.6.1.jar
>
> But above jar file only have class:
>
> jar tvf apache-solr-cell-3.6.1.jar | grep ExtractingRequestHandler
>   5332 Tue Jul 17 12:45:40 PDT 2012
> org/apache/solr/handler/extraction/ExtractingRequestHandler.class
>
> Where we can find "solr.extraction.ExtractingRequestHandler" ?
>
> Thanks very much for helps, Lisheng
>

Re: discovery-based core enumeration with embedded solr

Posted by Michael Sokolov <ms...@safaribooksonline.com>.
On 3/16/2013 9:52 AM, Erick Erickson wrote:
> Ahhhh, good catch! Coincidentally yesterday while in the midst of looking
> at some other JIRAs, I noticed that some pages on the Wiki said 4.2 and
> changed what I ran across to 4.3. I originally started the Wikis when I
> though I would go fast enough to get it into 4.2, sorry for the confusion!
>
> If the Wiki page you were looking at still says 4.2, please either edit it
> directly or send the link to me and I'll change it.
You've updated the confused info I saw, now.  Thanks that clears it up 
for me.
>
> So you're right, this isn't in 4.2 at all so the error above isn't in the
> new code cause there is no relevant new code to be wrong <G>. If you could
> pull a 4.x (or trunk) copy and try that would be great. Nightly builds are
> linked from here: http://wiki.apache.org/solr/NightlyBuilds
>
> I should also add that I'm eager for people to kick the tires on this so we
> can harden the whole thing before 4.3 actually gets cut.
I'll let you know if I run into any issues there - I'm not sure if I'll 
get to testing this before you release, but I'll try!

-Mike

Solr 3.6.1 ClassNotFound Exception

Posted by "Zhang, Lisheng" <Li...@BroadVision.com>.
Hi,

This is perhaps a trivial question but somehow I could not pin-down:
when trying to index a file (using solr 3.6.1) I got the error:

Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.extraction.ExtractingRequestHandler'

I know in solrconfig.xml we have defined 

///
<requestHandler name="/update/extract" 
                  startup="lazy"
                  class="solr.extraction.ExtractingRequestHandler" >
///

and the jar file should be:

<SOLR_HOME>/dist/apache-solr-cell-3.6.1.jar

But above jar file only have class:

jar tvf apache-solr-cell-3.6.1.jar | grep ExtractingRequestHandler
  5332 Tue Jul 17 12:45:40 PDT 2012 org/apache/solr/handler/extraction/ExtractingRequestHandler.class

Where we can find "solr.extraction.ExtractingRequestHandler" ?

Thanks very much for helps, Lisheng

Re: discovery-based core enumeration with embedded solr

Posted by Erick Erickson <er...@gmail.com>.
Ahhhh, good catch! Coincidentally yesterday while in the midst of looking
at some other JIRAs, I noticed that some pages on the Wiki said 4.2 and
changed what I ran across to 4.3. I originally started the Wikis when I
though I would go fast enough to get it into 4.2, sorry for the confusion!

If the Wiki page you were looking at still says 4.2, please either edit it
directly or send the link to me and I'll change it.

So you're right, this isn't in 4.2 at all so the error above isn't in the
new code cause there is no relevant new code to be wrong <G>. If you could
pull a 4.x (or trunk) copy and try that would be great. Nightly builds are
linked from here: http://wiki.apache.org/solr/NightlyBuilds

I should also add that I'm eager for people to kick the tires on this so we
can harden the whole thing before 4.3 actually gets cut.

Best
Erick


On Fri, Mar 15, 2013 at 11:23 AM, Michael Sokolov <
msokolov@safaribooksonline.com> wrote:

> Erick, before I do that - which I'll be happy to - I just want to make
> sure I'm testing the right thing. The wiki seems to indicate this is a 4.2+
> feature, but the ticket marks it as fixed in 4.3.  Maybe just a document
> bug?
>
> -Mike
>
>
> On 3/14/13 9:44 PM, Erick Erickson wrote:
>
>> Hmmmm, could you raise a JIRA and assign it to me? Please be sure and
>> emphasize that it's embedded because I'm pretty sure this is fine for the
>> regular case.
>>
>> But I have to admit that the embedded case completely slipped under the
>> radar.
>>
>> Even better if you could make a test case, but that might not be
>> straightforward...
>>
>> Thanks,
>> Erick
>>
>>
>> On Wed, Mar 13, 2013 at 5:28 PM, Michael Sokolov <
>> msokolov@safaribooksonline.com**> wrote:
>>
>>  Has the new core enumeration strategy been implemented in the
>>> CoreContainer.Initializer.****initialize() code path?  It doesn't seem
>>> like
>>>
>>> it has.
>>>
>>> I get this exception:
>>>
>>> Caused by: org.apache.solr.common.****SolrException: Could not load
>>> config
>>> for solrconfig.xml
>>>      at org.apache.solr.core.****CoreContainer.createFromLocal(****
>>> CoreContainer.java:991)
>>>      at org.apache.solr.core.****CoreContainer.create(**
>>>
>>> CoreContainer.java:1051)
>>>      ... 10 more
>>> Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in
>>> classpath or 'solr-multi/collection1/conf/'****, cwd=/proj/lux
>>>      at org.apache.solr.core.****SolrResourceLoader.****openResource(**
>>> SolrResourceLoader.java:318)
>>>      at org.apache.solr.core.****SolrResourceLoader.openConfig(****
>>> SolrResourceLoader.java:283)
>>>      at org.apache.solr.core.Config.<****init>(Config.java:103)
>>>      at org.apache.solr.core.Config.<****init>(Config.java:73)
>>>      at org.apache.solr.core.****SolrConfig.<init>(SolrConfig.***
>>> *java:117)
>>>      at org.apache.solr.core.****CoreContainer.createFromLocal(****
>>>
>>> CoreContainer.java:989)
>>>      ... 11 more
>>>
>>> even though I have a solr.properties file in solr-multi (which is my
>>> solr.home), and core.properties in some subdirectories of that
>>>
>>> --
>>> Michael Sokolov
>>> Senior Architect
>>> Safari Books Online
>>>
>>>
>>>
>

Re: discovery-based core enumeration with embedded solr

Posted by Michael Sokolov <ms...@safaribooksonline.com>.
Erick, before I do that - which I'll be happy to - I just want to make 
sure I'm testing the right thing. The wiki seems to indicate this is a 
4.2+ feature, but the ticket marks it as fixed in 4.3.  Maybe just a 
document bug?

-Mike

On 3/14/13 9:44 PM, Erick Erickson wrote:
> Hmmmm, could you raise a JIRA and assign it to me? Please be sure and
> emphasize that it's embedded because I'm pretty sure this is fine for the
> regular case.
>
> But I have to admit that the embedded case completely slipped under the
> radar.
>
> Even better if you could make a test case, but that might not be
> straightforward...
>
> Thanks,
> Erick
>
>
> On Wed, Mar 13, 2013 at 5:28 PM, Michael Sokolov <
> msokolov@safaribooksonline.com> wrote:
>
>> Has the new core enumeration strategy been implemented in the
>> CoreContainer.Initializer.**initialize() code path?  It doesn't seem like
>> it has.
>>
>> I get this exception:
>>
>> Caused by: org.apache.solr.common.**SolrException: Could not load config
>> for solrconfig.xml
>>      at org.apache.solr.core.**CoreContainer.createFromLocal(**
>> CoreContainer.java:991)
>>      at org.apache.solr.core.**CoreContainer.create(**
>> CoreContainer.java:1051)
>>      ... 10 more
>> Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in
>> classpath or 'solr-multi/collection1/conf/'**, cwd=/proj/lux
>>      at org.apache.solr.core.**SolrResourceLoader.**openResource(**
>> SolrResourceLoader.java:318)
>>      at org.apache.solr.core.**SolrResourceLoader.openConfig(**
>> SolrResourceLoader.java:283)
>>      at org.apache.solr.core.Config.<**init>(Config.java:103)
>>      at org.apache.solr.core.Config.<**init>(Config.java:73)
>>      at org.apache.solr.core.**SolrConfig.<init>(SolrConfig.**java:117)
>>      at org.apache.solr.core.**CoreContainer.createFromLocal(**
>> CoreContainer.java:989)
>>      ... 11 more
>>
>> even though I have a solr.properties file in solr-multi (which is my
>> solr.home), and core.properties in some subdirectories of that
>>
>> --
>> Michael Sokolov
>> Senior Architect
>> Safari Books Online
>>
>>


Re: discovery-based core enumeration with embedded solr

Posted by Erick Erickson <er...@gmail.com>.
Hmmmm, could you raise a JIRA and assign it to me? Please be sure and
emphasize that it's embedded because I'm pretty sure this is fine for the
regular case.

But I have to admit that the embedded case completely slipped under the
radar.

Even better if you could make a test case, but that might not be
straightforward...

Thanks,
Erick


On Wed, Mar 13, 2013 at 5:28 PM, Michael Sokolov <
msokolov@safaribooksonline.com> wrote:

> Has the new core enumeration strategy been implemented in the
> CoreContainer.Initializer.**initialize() code path?  It doesn't seem like
> it has.
>
> I get this exception:
>
> Caused by: org.apache.solr.common.**SolrException: Could not load config
> for solrconfig.xml
>     at org.apache.solr.core.**CoreContainer.createFromLocal(**
> CoreContainer.java:991)
>     at org.apache.solr.core.**CoreContainer.create(**
> CoreContainer.java:1051)
>     ... 10 more
> Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in
> classpath or 'solr-multi/collection1/conf/'**, cwd=/proj/lux
>     at org.apache.solr.core.**SolrResourceLoader.**openResource(**
> SolrResourceLoader.java:318)
>     at org.apache.solr.core.**SolrResourceLoader.openConfig(**
> SolrResourceLoader.java:283)
>     at org.apache.solr.core.Config.<**init>(Config.java:103)
>     at org.apache.solr.core.Config.<**init>(Config.java:73)
>     at org.apache.solr.core.**SolrConfig.<init>(SolrConfig.**java:117)
>     at org.apache.solr.core.**CoreContainer.createFromLocal(**
> CoreContainer.java:989)
>     ... 11 more
>
> even though I have a solr.properties file in solr-multi (which is my
> solr.home), and core.properties in some subdirectories of that
>
> --
> Michael Sokolov
> Senior Architect
> Safari Books Online
>
>