lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl <jan....@cominvent.com>
Subject Re: How to let Solr load libs from within my JAR?
Date Wed, 24 Apr 2013 10:48:19 GMT
Hi,

Java class loader does not support JAR within JAR. You'll have to unpack both JARs and then
JAR them together as one. Or simply give several JARs to Solr, that's the easiest.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

24. apr. 2013 kl. 03:37 skrev Xi Shen <davidshen84@gmail.com>:

> Hi,
> 
> I developed a data import handler, it has some dependent libraries. I
> deployed them in a parallel folder with my JAR and included the path in
> solrconfig.xml. It works fine. But I am thinking maybe I can pack those JAR
> libs within my JAR, but I got NoClassDefFoundError exception when executing
> my DIH.
> 
> Is it possible Solr can load JAR libs packed in my JAR? How can I do that.
> 
> 
> -- 
> Regards,
> David Shen
> 
> http://about.me/davidshen
> https://twitter.com/#!/davidshen84


Mime
View raw message