Thanks for your reply.

Actually, some of the cores are working perfectly. So it's not the 
solr.solr.home problem.




________________________________
From: "Jaeger, Jay - DOT" <jay.jae...@dot.wi.gov>
To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>; 'Xue-Feng 
Yang' <just4l...@yahoo.com>
Sent: Wednesday, September 14, 2011 11:21:18 AM
Subject: RE: glassfish, solrconfig.xml  and SolrException: Error loading 
DataImportHandler

Some things to think about:

When solr starts up, solr should report for the location of solr home.  Is it 
what you expect?
Is there any security on the "dist" directory that would prevent solr from 
accessing it?
Is there a classloader policy set on glassfish that could be getting in the way?

(your testing seems to eliminate the possibility of a JRE incompatibility)

JRJ

-----Original Message-----
From: Xue-Feng Yang [mailto:just4l...@yahoo.com] 
Sent: Wednesday, September 14, 2011 10:07 AM
To: solr-user@lucene.apache.org
Subject: Re: glassfish, solrconfig.xml and SolrException: Error loading 
DataImportHandler

Thanks for a quick reply. 


I just tested as you suggested. The error is still there.

The setup line

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


is actually coming with solr 3.3 release not by me.




________________________________
From: "dar...@ontrenet.com" <dar...@ontrenet.com>
To: Xue-Feng Yang <just4l...@yahoo.com>
Cc: solr-user@lucene.apache.org
Sent: Wednesday, September 14, 2011 10:52:55 AM
Subject: Re: glassfish, solrconfig.xml  and SolrException: Error loading 
DataImportHandler


Here's a thought.

If dist is under solr.solr.home but your lib dir is set to be
"../../dist".
Wouldn't the lib dir be relative to solr.solr.home and therefore should
just be "dist"?

On Wed, 14 Sep 2011 07:45:45 -0700 (PDT), Xue-Feng Yang
<just4l...@yahoo.com> wrote:
> Hi all,
> 
> 
> I am trying set up solr 3.3 with multicores in glassfish 3.1.1 and
eclipse
> indigo. I have the following error:
> 
> SEVERE: org.apache.solr.common.SolrException: Error loading class
> 'org.apache.solr.handler.dataimport.DataImportHandler'
> 
> However, I have a line
> 
>   <lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar"
> />
> 
> in solrconfig.xml and dist is under the solr.solr.home directory. 
> 
> If I copy the jars to <glassfish_root>/glassfish/domains/domain1/lib/ext
> then this error will not appear. But this should not be right way.
> 
> Any thought?
> 
> Thanks.

Reply via email to