lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaeger, Jay - DOT" <Jay.Jae...@dot.wi.gov>
Subject RE: glassfish, solrconfig.xml and SolrException: Error loading DataImportHandler
Date Wed, 14 Sep 2011 15:21:18 GMT
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:just4look@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: "darren@ontrenet.com" <darren@ontrenet.com>
To: Xue-Feng Yang <just4look@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
<just4look@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.

Mime
View raw message