# JarJar lucene dependencies? Why?

**URL:** <https://discuss.elastic.co/t/jarjar-lucene-dependencies-why/7514>\
**Category:** Elasticsearch\
**Created:** [April 30, 2012, 12:51pm UTC](https://discuss.elastic.co/t/jarjar-lucene-dependencies-why/7514 "2012-04-30T12:51:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sten\_Roger\_Sandvik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sten_roger_sandvik/32/2893_2.png) [@Sten\_Roger\_Sandvik](https://discuss.elastic.co/u/Sten_Roger_Sandvik)\
**Post date:** [April 30, 2012, 12:51pm UTC](https://discuss.elastic.co/t/jarjar-lucene-dependencies-why/7514/1 "2012-04-30T12:51:50Z")

</div>

Hi.

I am trying to embed both ElasticSearch and Jackrabbit inside one  
WebApp. Since ElasticSearch and Jackrabbit uses different lucene  
versions we have a problem. I see that ElasticSearch are embedding  
almost all depdencies by rewriting package names. But, lucene is not  
embedded in this way. Is it a good reason why it is not?

BR,  
Sten Roger Sandvik

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 1, 2012, 2:57pm UTC](https://discuss.elastic.co/t/jarjar-lucene-dependencies-why/7514/2 "2012-05-01T14:57:34Z")

</div>

Mainly because when using the TransportClient, there is no need for the  
Lucene jars.

On Mon, Apr 30, 2012 at 3:51 PM, Sten Roger Sandvik [stenrs@gmail.com](mailto:stenrs@gmail.com)wrote:

> Hi.
> 
> I am trying to embed both Elasticsearch and Jackrabbit inside one  
> WebApp. Since Elasticsearch and Jackrabbit uses different lucene  
> versions we have a problem. I see that Elasticsearch are embedding  
> almost all depdencies by rewriting package names. But, lucene is not  
> embedded in this way. Is it a good reason why it is not?
> 
> BR,  
> Sten Roger Sandvik

---

<div class="post-metadata">

**Author:** ![Sten\_Roger\_Sandvik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sten_roger_sandvik/32/2893_2.png) [@Sten\_Roger\_Sandvik](https://discuss.elastic.co/u/Sten_Roger_Sandvik)\
**Post date:** [May 8, 2012, 8:59am UTC](https://discuss.elastic.co/t/jarjar-lucene-dependencies-why/7514/3 "2012-05-08T08:59:45Z")

</div>

Thanks. But when I remove the jar dependencies of lucene jars, I get a  
CLF exception. It seems that some lucene classes are not bundled when  
starting a local node (with storage). In NodeEnvironment there are  
dependencies to both org.apache.lucene.store.Lock and  
org.apache.lucene.store.NativeFSLockFactory. Is this on purpose?

BR,  
Sten Roger

On 1 Mai, 16:57, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Mainly because when using the TransportClient, there is no need for the  
> Lucene jars.
> 
> On Mon, Apr 30, 2012 at 3:51 PM, Sten Roger Sandvik [ste...@gmail.com](mailto:ste...@gmail.com)wrote:
> 
> > Hi.
> 
> > I am trying to embed both Elasticsearch and Jackrabbit inside one  
> > WebApp. Since Elasticsearch and Jackrabbit uses different lucene  
> > versions we have a problem. I see that Elasticsearch are embedding  
> > almost all depdencies by rewriting package names. But, lucene is not  
> > embedded in this way. Is it a good reason why it is not?
> 
> > BR,  
> > Sten Roger Sandvik

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 9, 2012, 9:25am UTC](https://discuss.elastic.co/t/jarjar-lucene-dependencies-why/7514/4 "2012-05-09T09:25:41Z")

</div>

Maybe its because you started a NodeClient and not a TransportClient?  
NodeClient requires Lucene jars.

On Tue, May 8, 2012 at 11:59 AM, Sten Roger Sandvik [stenrs@gmail.com](mailto:stenrs@gmail.com)wrote:

> Thanks. But when I remove the jar dependencies of lucene jars, I get a  
> CLF exception. It seems that some lucene classes are not bundled when  
> starting a local node (with storage). In NodeEnvironment there are  
> dependencies to both org.apache.lucene.store.Lock and  
> org.apache.lucene.store.NativeFSLockFactory. Is this on purpose?
> 
> BR,  
> Sten Roger
> 
> On 1 Mai, 16:57, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > Mainly because when using the TransportClient, there is no need for the  
> > Lucene jars.
> > 
> > On Mon, Apr 30, 2012 at 3:51 PM, Sten Roger Sandvik \<[ste...@gmail.com](mailto:ste...@gmail.com)  
> > wrote:
> > 
> > > Hi.
> > 
> > > I am trying to embed both Elasticsearch and Jackrabbit inside one  
> > > WebApp. Since Elasticsearch and Jackrabbit uses different lucene  
> > > versions we have a problem. I see that Elasticsearch are embedding  
> > > almost all depdencies by rewriting package names. But, lucene is not  
> > > embedded in this way. Is it a good reason why it is not?
> > 
> > > BR,  
> > > Sten Roger Sandvik

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:29am UTC](https://discuss.elastic.co/t/jarjar-lucene-dependencies-why/7514/5 "2017-07-06T03:29:40Z")

</div>


